##// END OF EJS Templates
Make repr-reliant test less specific
Thomas Kluyver -
Show More
@@ -58,7 +58,8 b' def test():'
58
58
59 def test_lambda():
59 def test_lambda():
60 jc = json_clean(lambda : 1)
60 jc = json_clean(lambda : 1)
61 nt.assert_true(jc.startswith('<function <lambda> at '))
61 assert isinstance(jc, str)
62 assert '<lambda>' in jc
62 json.dumps(jc)
63 json.dumps(jc)
63
64
64
65
General Comments 0
You need to be logged in to leave comments. Login now