##// END OF EJS Templates
put test in content manager
Bussonnier Matthias -
Show More
@@ -136,13 +136,13 def test_json():
136 136 nt.assert_equal(j._repr_json_(), d)
137 137 with warnings.catch_warnings(record=True) as w:
138 138 j = display.JSON(json.dumps(d))
139 assert len(w) == 1
139 nt.assert_equal(len(w), 1)
140 140 nt.assert_equal(j._repr_json_(), d)
141 141 j = display.JSON(lis)
142 142 nt.assert_equal(j._repr_json_(), lis)
143 143 with warnings.catch_warnings(record=True) as w:
144 144 j = display.JSON(json.dumps(lis))
145 assert len(w) == 1
145 nt.assert_equal(len(w), 1)
146 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