From bbe349e1bed836349ab1c39bdd7b3a9c85979443 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Mon, 15 Dec 2014 22:59:51 +0100 Subject: TestCase.assertEqual is the recommended spelling --- testsuite/test_util.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'testsuite') diff --git a/testsuite/test_util.py b/testsuite/test_util.py index 658d057..11395cc 100644 --- a/testsuite/test_util.py +++ b/testsuite/test_util.py @@ -10,14 +10,14 @@ class UtilTestCase(unittest.TestCase): def test_normalize_paths(self): cwd = os.getcwd() - self.assertEquals(pep8.normalize_paths(''), []) - self.assertEquals(pep8.normalize_paths([]), []) - self.assertEquals(pep8.normalize_paths(None), []) - self.assertEquals(pep8.normalize_paths(['foo']), ['foo']) - self.assertEquals(pep8.normalize_paths('foo'), ['foo']) - self.assertEquals(pep8.normalize_paths('foo,bar'), ['foo', 'bar']) - self.assertEquals(pep8.normalize_paths('foo, bar '), ['foo', 'bar']) - self.assertEquals(pep8.normalize_paths('/foo/bar,baz/../bat'), - ['/foo/bar', cwd + '/bat']) - self.assertEquals(pep8.normalize_paths(".pyc,\n build/*"), - ['.pyc', cwd + '/build/*']) + self.assertEqual(pep8.normalize_paths(''), []) + self.assertEqual(pep8.normalize_paths([]), []) + self.assertEqual(pep8.normalize_paths(None), []) + self.assertEqual(pep8.normalize_paths(['foo']), ['foo']) + self.assertEqual(pep8.normalize_paths('foo'), ['foo']) + self.assertEqual(pep8.normalize_paths('foo,bar'), ['foo', 'bar']) + self.assertEqual(pep8.normalize_paths('foo, bar '), ['foo', 'bar']) + self.assertEqual(pep8.normalize_paths('/foo/bar,baz/../bat'), + ['/foo/bar', cwd + '/bat']) + self.assertEqual(pep8.normalize_paths(".pyc,\n build/*"), + ['.pyc', cwd + '/build/*']) -- cgit v1.2.1