From 2326529262fd27318fbd95bbbae1a74dca134a22 2017-01-04 04:01:36 From: Srinivas Reddy Thatiparthy Date: 2017-01-04 04:01:36 Subject: [PATCH] convert assert_equals to assert_equal --- diff --git a/IPython/core/tests/test_completer.py b/IPython/core/tests/test_completer.py index 03c0a4f..e406f3a 100644 --- a/IPython/core/tests/test_completer.py +++ b/IPython/core/tests/test_completer.py @@ -145,8 +145,8 @@ def test_latex_completions(): nt.assert_equal(matches[0], latex_symbols[k]) # Test a more complex line text, matches = ip.complete(u'print(\\alpha') - nt.assert_equals(text, u'\\alpha') - nt.assert_equals(matches[0], latex_symbols['\\alpha']) + nt.assert_equal(text, u'\\alpha') + nt.assert_equal(matches[0], latex_symbols['\\alpha']) # Test multiple matching latex symbols text, matches = ip.complete(u'\\al') nt.assert_in('\\alpha', matches) diff --git a/IPython/utils/tests/test_path.py b/IPython/utils/tests/test_path.py index 4aba13f..966f3a8 100644 --- a/IPython/utils/tests/test_path.py +++ b/IPython/utils/tests/test_path.py @@ -366,8 +366,8 @@ class TestShellGlob(object): def check_match(self, patterns, matches): with self.in_tempdir(): # glob returns unordered list. that's why sorted is required. - nt.assert_equals(sorted(path.shellglob(patterns)), - sorted(matches)) + nt.assert_equal(sorted(path.shellglob(patterns)), + sorted(matches)) def common_cases(self): return [ @@ -403,11 +403,11 @@ class TestShellGlob(object): def test_unescape_glob(): - nt.assert_equals(path.unescape_glob(r'\*\[\!\]\?'), '*[!]?') - nt.assert_equals(path.unescape_glob(r'\\*'), r'\*') - nt.assert_equals(path.unescape_glob(r'\\\*'), r'\*') - nt.assert_equals(path.unescape_glob(r'\\a'), r'\a') - nt.assert_equals(path.unescape_glob(r'\a'), r'\a') + nt.assert_equal(path.unescape_glob(r'\*\[\!\]\?'), '*[!]?') + nt.assert_equal(path.unescape_glob(r'\\*'), r'\*') + nt.assert_equal(path.unescape_glob(r'\\\*'), r'\*') + nt.assert_equal(path.unescape_glob(r'\\a'), r'\a') + nt.assert_equal(path.unescape_glob(r'\a'), r'\a') def test_ensure_dir_exists(): @@ -435,17 +435,17 @@ class TestLinkOrCopy(object): return os.path.join(self.tempdir.name, *args) def assert_inode_not_equal(self, a, b): - nt.assert_not_equals(os.stat(a).st_ino, os.stat(b).st_ino, - "%r and %r do reference the same indoes" %(a, b)) + nt.assert_not_equal(os.stat(a).st_ino, os.stat(b).st_ino, + "%r and %r do reference the same indoes" %(a, b)) def assert_inode_equal(self, a, b): - nt.assert_equals(os.stat(a).st_ino, os.stat(b).st_ino, - "%r and %r do not reference the same indoes" %(a, b)) + nt.assert_equal(os.stat(a).st_ino, os.stat(b).st_ino, + "%r and %r do not reference the same indoes" %(a, b)) def assert_content_equal(self, a, b): with open(a) as a_f: with open(b) as b_f: - nt.assert_equals(a_f.read(), b_f.read()) + nt.assert_equal(a_f.read(), b_f.read()) @skip_win32 def test_link_successful(self):