##// END OF EJS Templates
Backport PR #2491: color is supported in ironpython...
Backport PR #2491: color is supported in ironpython changes for ongoing effort to make ipython to work under ironpython I have activated color support.

File last commit:

r7253:4b8de020
r9832:de54470b
Show More
nose_assert_methods.py
17 lines | 516 B | text/x-python | PythonLexer
/ IPython / testing / nose_assert_methods.py
Thomas Kluyver
Add assert_in method to nose for Python 2.6
r7213 """Add some assert methods to nose.tools. These were added in Python 2.7/3.1, so
once we stop testing on Python 2.6, this file can be removed.
"""
import nose.tools as nt
def assert_in(item, collection):
assert item in collection, '%r not in %r' % (item, collection)
if not hasattr(nt, 'assert_in'):
nt.assert_in = assert_in
Thomas Kluyver
Add assert_not_in method for Python2.6
r7253
def assert_not_in(item, collection):
assert item not in collection, '%r in %r' % (item, collection)
if not hasattr(nt, 'assert_not_in'):
nt.assert_not_in = assert_not_in