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