##// END OF EJS Templates
Add assert_not_in method for Python2.6
Thomas Kluyver -
Show More
@@ -9,3 +9,9 b' def assert_in(item, collection):'
9
9
10 if not hasattr(nt, 'assert_in'):
10 if not hasattr(nt, 'assert_in'):
11 nt.assert_in = assert_in
11 nt.assert_in = assert_in
12
13 def assert_not_in(item, collection):
14 assert item not in collection, '%r in %r' % (item, collection)
15
16 if not hasattr(nt, 'assert_not_in'):
17 nt.assert_not_in = assert_not_in
General Comments 0
You need to be logged in to leave comments. Login now