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
(cherry picked from commit 82b8e6da2e
)
This commit is contained in:
@@ -2608,6 +2608,6 @@ class ELCMTestCase(testtools.TestCase):
|
|||||||
"name": "hyper_threading_enabled",
|
"name": "hyper_threading_enabled",
|
||||||
"value": "True"
|
"value": "True"
|
||||||
}]
|
}]
|
||||||
self.assertItemsEqual(expect_settings, result)
|
self.assertCountEqual(expect_settings, result)
|
||||||
backup_bios_config_mock.assert_called_once_with(
|
backup_bios_config_mock.assert_called_once_with(
|
||||||
self.irmc_info)
|
self.irmc_info)
|
||||||
|
Reference in New Issue
Block a user