##// END OF EJS Templates
put test in content manager
Bussonnier Matthias -
Show More
@@ -136,13 +136,13 b' def test_json():'
136 nt.assert_equal(j._repr_json_(), d)
136 nt.assert_equal(j._repr_json_(), d)
137 with warnings.catch_warnings(record=True) as w:
137 with warnings.catch_warnings(record=True) as w:
138 j = display.JSON(json.dumps(d))
138 j = display.JSON(json.dumps(d))
139 assert len(w) == 1
139 nt.assert_equal(len(w), 1)
140 nt.assert_equal(j._repr_json_(), d)
140 nt.assert_equal(j._repr_json_(), d)
141 j = display.JSON(lis)
141 j = display.JSON(lis)
142 nt.assert_equal(j._repr_json_(), lis)
142 nt.assert_equal(j._repr_json_(), lis)
143 with warnings.catch_warnings(record=True) as w:
143 with warnings.catch_warnings(record=True) as w:
144 j = display.JSON(json.dumps(lis))
144 j = display.JSON(json.dumps(lis))
145 assert len(w) == 1
145 nt.assert_equal(len(w), 1)
146 nt.assert_equal(j._repr_json_(), lis)
146 nt.assert_equal(j._repr_json_(), lis)
147
147
148 No newline at end of file
148
General Comments 0
You need to be logged in to leave comments. Login now