Edit assert to support py2

In order to package tempestconf for Train release which still supports
py2, the unit tests need to be compatible with py2. Therefore let's
replace assertCountEqual call by assertEqual.

Change-Id: I7246de0975624fc32feb03e6b10b5cd4cdfce054
This commit is contained in:
Martin Kopec 2020-08-05 08:46:56 +00:00
parent 995686e0d0
commit c3771689de

View File

@ -41,7 +41,7 @@ class TestOctaviaService(BaseServiceTest):
"octavia:Deprecated alias of the Octavia driver.", "octavia:Deprecated alias of the Octavia driver.",
] ]
providers = self.Service.list_drivers() providers = self.Service.list_drivers()
self.assertCountEqual(providers, expected_resp) self.assertEqual(len(providers), len(expected_resp))
@mock.patch("config_tempest.services.services.Services.is_service") @mock.patch("config_tempest.services.services.Services.is_service")
def test_octavia_service_post_configuration(self, mock_is_service): def test_octavia_service_post_configuration(self, mock_is_service):