##// END OF EJS Templates
Merge pull request #1821 from ellisonbg/nbrename-enter...
Merge pull request #1821 from ellisonbg/nbrename-enter ENTER submits the rename notebook dialog.

File last commit:

r7213:e37e8353
r7249:7d8e4a4a merge
Show More
nose_assert_methods.py
11 lines | 336 B | text/x-python | PythonLexer
"""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