Replace deprecated assertEquals

The assertEquals method has been deprecated since it was renamed
to assertEqual in Python 3.2.

https: //docs.python.org/3/library/unittest.html#deprecated-aliases
Change-Id: I5f9ae14fe91c3c3cdf5dd9884997ba6a51091570
This commit is contained in:
likui 2021-11-10 18:02:28 +08:00
parent 98e692d00f
commit fa0b75467e
1 changed files with 6 additions and 6 deletions

View File

@ -148,8 +148,8 @@ class TestDeploymentWorkflows(utils.TestCommand):
# Verify the old config-download dir is a symlink
self.assertTrue(os.path.islink(old_cd_dir))
# Verify old config-download dir symlink points to new dir
self.assertEquals(os.path.join(new, stack),
os.path.realpath(old_cd_dir))
self.assertEqual(os.path.join(new, stack),
os.path.realpath(old_cd_dir))
def test_config_download_migrate_dirs(self):
stack = 'teststack'
@ -168,8 +168,8 @@ class TestDeploymentWorkflows(utils.TestCommand):
# Verify the old config-download dir is a symlink
self.assertTrue(os.path.islink(old_cd_dir))
# Verify old config-download dir symlink points to new dir
self.assertEquals(os.path.join(new, stack),
os.path.realpath(old_cd_dir))
self.assertEqual(os.path.join(new, stack),
os.path.realpath(old_cd_dir))
def test_config_download_no_migrate_dirs(self):
stack = 'teststack'
@ -191,5 +191,5 @@ class TestDeploymentWorkflows(utils.TestCommand):
# Verify the old config-download dir is a symlink
self.assertTrue(os.path.islink(old_cd_dir))
# Verify old config-download dir symlink points to new dir
self.assertEquals(os.path.join(new, stack),
os.path.realpath(old_cd_dir))
self.assertEqual(os.path.join(new, stack),
os.path.realpath(old_cd_dir))