Skip to content

Commit 7e9b63a

Browse files
authored
assertEquals -> assertEqual (#188)
1 parent f91896a commit 7e9b63a

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

tests/configtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def test_excluded_labels(self):
191191

192192
cfg = config.load(repo_root)
193193

194-
self.assertEquals(("123", "444"), cfg.excluded_dependency_labels)
194+
self.assertEqual(("123", "444"), cfg.excluded_dependency_labels)
195195

196196
def test_str(self):
197197
repo_root = tempfile.mkdtemp("root")

tests/maveninstallinfotest.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def test_explicit_paths(self):
2222

2323
files = m.get_maven_install_names_and_paths(repo_root)
2424

25-
self.assertEquals(2, len(files))
26-
self.assertEquals("my_rules", files[0][0])
27-
self.assertEquals(os.path.join(repo_root, "my_rules_install.json"), files[0][1])
28-
self.assertEquals("maven", files[1][0])
29-
self.assertEquals(os.path.join(repo_root, "tools", "maven_install.json"), files[1][1])
25+
self.assertEqual(2, len(files))
26+
self.assertEqual("my_rules", files[0][0])
27+
self.assertEqual(os.path.join(repo_root, "my_rules_install.json"), files[0][1])
28+
self.assertEqual("maven", files[1][0])
29+
self.assertEqual(os.path.join(repo_root, "tools", "maven_install.json"), files[1][1])
3030

3131
def test_path_with_glob(self):
3232
repo_root = tempfile.mkdtemp("monorepo")
@@ -37,11 +37,11 @@ def test_path_with_glob(self):
3737

3838
files = m.get_maven_install_names_and_paths(repo_root)
3939

40-
self.assertEquals(2, len(files))
41-
self.assertEquals("maven", files[0][0])
42-
self.assertEquals(os.path.join(repo_root, "tools", "maven_install.json"), files[0][1])
43-
self.assertEquals("my_rules", files[1][0])
44-
self.assertEquals(os.path.join(repo_root, "tools", "my_rules_install.json"), files[1][1])
40+
self.assertEqual(2, len(files))
41+
self.assertEqual("maven", files[0][0])
42+
self.assertEqual(os.path.join(repo_root, "tools", "maven_install.json"), files[0][1])
43+
self.assertEqual("my_rules", files[1][0])
44+
self.assertEqual(os.path.join(repo_root, "tools", "my_rules_install.json"), files[1][1])
4545

4646
def test_path_with_glob_and_exclusions(self):
4747
repo_root = tempfile.mkdtemp("monorepo")
@@ -52,11 +52,11 @@ def test_path_with_glob_and_exclusions(self):
5252

5353
files = m.get_maven_install_names_and_paths(repo_root)
5454

55-
self.assertEquals(2, len(files))
56-
self.assertEquals("maven_blah", files[0][0])
57-
self.assertEquals(os.path.join(repo_root, "tools", "maven_blah_install.json"), files[0][1])
58-
self.assertEquals("my_rules", files[1][0])
59-
self.assertEquals(os.path.join(repo_root, "tools", "my_rules_install.json"), files[1][1])
55+
self.assertEqual(2, len(files))
56+
self.assertEqual("maven_blah", files[0][0])
57+
self.assertEqual(os.path.join(repo_root, "tools", "maven_blah_install.json"), files[0][1])
58+
self.assertEqual("my_rules", files[1][0])
59+
self.assertEqual(os.path.join(repo_root, "tools", "my_rules_install.json"), files[1][1])
6060

6161
def _touch_file_at_path(self, repo_root_path, file_path):
6262
path = os.path.join(repo_root_path, file_path)

0 commit comments

Comments
 (0)