Show More
@@ -145,8 +145,8 b' def test_latex_completions():' | |||||
145 | nt.assert_equal(matches[0], latex_symbols[k]) |
|
145 | nt.assert_equal(matches[0], latex_symbols[k]) | |
146 | # Test a more complex line |
|
146 | # Test a more complex line | |
147 | text, matches = ip.complete(u'print(\\alpha') |
|
147 | text, matches = ip.complete(u'print(\\alpha') | |
148 |
nt.assert_equal |
|
148 | nt.assert_equal(text, u'\\alpha') | |
149 |
nt.assert_equal |
|
149 | nt.assert_equal(matches[0], latex_symbols['\\alpha']) | |
150 | # Test multiple matching latex symbols |
|
150 | # Test multiple matching latex symbols | |
151 | text, matches = ip.complete(u'\\al') |
|
151 | text, matches = ip.complete(u'\\al') | |
152 | nt.assert_in('\\alpha', matches) |
|
152 | nt.assert_in('\\alpha', matches) |
@@ -366,8 +366,8 b' class TestShellGlob(object):' | |||||
366 | def check_match(self, patterns, matches): |
|
366 | def check_match(self, patterns, matches): | |
367 | with self.in_tempdir(): |
|
367 | with self.in_tempdir(): | |
368 | # glob returns unordered list. that's why sorted is required. |
|
368 | # glob returns unordered list. that's why sorted is required. | |
369 |
nt.assert_equal |
|
369 | nt.assert_equal(sorted(path.shellglob(patterns)), | |
370 |
|
|
370 | sorted(matches)) | |
371 |
|
371 | |||
372 | def common_cases(self): |
|
372 | def common_cases(self): | |
373 | return [ |
|
373 | return [ | |
@@ -403,11 +403,11 b' class TestShellGlob(object):' | |||||
403 |
|
403 | |||
404 |
|
404 | |||
405 | def test_unescape_glob(): |
|
405 | def test_unescape_glob(): | |
406 |
nt.assert_equal |
|
406 | nt.assert_equal(path.unescape_glob(r'\*\[\!\]\?'), '*[!]?') | |
407 |
nt.assert_equal |
|
407 | nt.assert_equal(path.unescape_glob(r'\\*'), r'\*') | |
408 |
nt.assert_equal |
|
408 | nt.assert_equal(path.unescape_glob(r'\\\*'), r'\*') | |
409 |
nt.assert_equal |
|
409 | nt.assert_equal(path.unescape_glob(r'\\a'), r'\a') | |
410 |
nt.assert_equal |
|
410 | nt.assert_equal(path.unescape_glob(r'\a'), r'\a') | |
411 |
|
411 | |||
412 |
|
412 | |||
413 | def test_ensure_dir_exists(): |
|
413 | def test_ensure_dir_exists(): | |
@@ -435,17 +435,17 b' class TestLinkOrCopy(object):' | |||||
435 | return os.path.join(self.tempdir.name, *args) |
|
435 | return os.path.join(self.tempdir.name, *args) | |
436 |
|
436 | |||
437 | def assert_inode_not_equal(self, a, b): |
|
437 | def assert_inode_not_equal(self, a, b): | |
438 |
nt.assert_not_equal |
|
438 | nt.assert_not_equal(os.stat(a).st_ino, os.stat(b).st_ino, | |
439 |
|
|
439 | "%r and %r do reference the same indoes" %(a, b)) | |
440 |
|
440 | |||
441 | def assert_inode_equal(self, a, b): |
|
441 | def assert_inode_equal(self, a, b): | |
442 |
nt.assert_equal |
|
442 | nt.assert_equal(os.stat(a).st_ino, os.stat(b).st_ino, | |
443 |
|
|
443 | "%r and %r do not reference the same indoes" %(a, b)) | |
444 |
|
444 | |||
445 | def assert_content_equal(self, a, b): |
|
445 | def assert_content_equal(self, a, b): | |
446 | with open(a) as a_f: |
|
446 | with open(a) as a_f: | |
447 | with open(b) as b_f: |
|
447 | with open(b) as b_f: | |
448 |
nt.assert_equal |
|
448 | nt.assert_equal(a_f.read(), b_f.read()) | |
449 |
|
449 | |||
450 | @skip_win32 |
|
450 | @skip_win32 | |
451 | def test_link_successful(self): |
|
451 | def test_link_successful(self): |
General Comments 0
You need to be logged in to leave comments.
Login now