##// END OF EJS Templates
Update tests for info changes
Thomas Kluyver -
Show More
@@ -28,6 +28,7 b' from IPython.core.magic import (Magics, magics_class, line_magic,'
28 28 register_line_cell_magic)
29 29 from IPython.external.decorator import decorator
30 30 from IPython.testing.decorators import skipif
31 from IPython.utils.path import compress_user
31 32 from IPython.utils import py3compat
32 33
33 34
@@ -241,7 +242,7 b' def test_info():'
241 242 fname = fname[:-1]
242 243 # case-insensitive comparison needed on some filesystems
243 244 # e.g. Windows:
244 nt.assert_equal(i['file'].lower(), fname.lower())
245 nt.assert_equal(i['file'].lower(), compress_user(fname.lower()))
245 246 nt.assert_equal(i['definition'], None)
246 247 nt.assert_equal(i['docstring'], Call.__doc__)
247 248 nt.assert_equal(i['source'], None)
@@ -384,7 +384,7 b' def test_oinfo_detail():'
384 384 content = reply['content']
385 385 assert content['found']
386 386 text = content['data']['text/plain']
387 nt.assert_in('Definition:', text)
387 nt.assert_in('Signature:', text)
388 388 nt.assert_in('Source:', text)
389 389
390 390
General Comments 0
You need to be logged in to leave comments. Login now