diff --git a/plugin/src/py/android_screenshot_tests/test_pull_screenshots.py b/plugin/src/py/android_screenshot_tests/test_pull_screenshots.py index 5b68a59a..857ca41f 100644 --- a/plugin/src/py/android_screenshot_tests/test_pull_screenshots.py +++ b/plugin/src/py/android_screenshot_tests/test_pull_screenshots.py @@ -323,7 +323,7 @@ def test_screenshots_with_same_group_ordered_together(self): screenshots = pull_screenshots.sort_screenshots(loaded_json) - self.assertEquals(["two", "one", "three"], [x.get("name") for x in screenshots]) + self.assertEqual(["two", "one", "three"], [x.get("name") for x in screenshots]) def test_invalid_json(self): source = join(tempfile.mkdtemp(), "foo") @@ -351,18 +351,16 @@ def test_invalid_json(self): class TestAndroidJoin(unittest.TestCase): def test_simple(self): - self.assertEquals("/foo/bar", pull_screenshots.android_path_join("/foo", "bar")) - self.assertEquals( - "/foo/bar", pull_screenshots.android_path_join("/foo/", "bar") - ) + self.assertEqual("/foo/bar", pull_screenshots.android_path_join("/foo", "bar")) + self.assertEqual("/foo/bar", pull_screenshots.android_path_join("/foo/", "bar")) def test_multiple(self): - self.assertEquals( + self.assertEqual( "/foo/bar/car", pull_screenshots.android_path_join("/foo", "bar/", "car") ) def test_root(self): - self.assertEquals("/bar", pull_screenshots.android_path_join("/foo", "/bar")) + self.assertEqual("/bar", pull_screenshots.android_path_join("/foo", "/bar")) if __name__ == "__main__":