Use assertCountEqual instead of assertItemsEqual

The assertItemsEqual method has been removed in Python 3.3 [1] but
it was kept alive by unittest2, imported by testtools. For better
compatibility, change to assertCountEqual.

[1] https://bugs.python.org/issue17866

Change-Id: Ia006ecb834f180dbaef5a617269fe8416769e109
This commit is contained in:
yatinkarel 2021-05-12 10:34:49 +05:30
parent e66d50cd3f
commit 82b8e6da2e
1 changed files with 1 additions and 1 deletions

View File

@ -2608,6 +2608,6 @@ class ELCMTestCase(testtools.TestCase):
"name": "hyper_threading_enabled",
"value": "True"
}]
self.assertItemsEqual(expect_settings, result)
self.assertCountEqual(expect_settings, result)
backup_bios_config_mock.assert_called_once_with(
self.irmc_info)