Browse Source

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
changes/98/790898/1
yatinkarel 1 month ago
parent
commit
82b8e6da2e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      scciclient/tests/irmc/test_elcm.py

+ 1
- 1
scciclient/tests/irmc/test_elcm.py 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)

Loading…
Cancel
Save