From c3771689de2c066e8e0a3d59bce2e456b5d610c9 Mon Sep 17 00:00:00 2001 From: Martin Kopec Date: Wed, 5 Aug 2020 08:46:56 +0000 Subject: [PATCH] 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 --- config_tempest/tests/services/test_octavia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_tempest/tests/services/test_octavia.py b/config_tempest/tests/services/test_octavia.py index 7f42c551..0b3f2d04 100644 --- a/config_tempest/tests/services/test_octavia.py +++ b/config_tempest/tests/services/test_octavia.py @@ -41,7 +41,7 @@ class TestOctaviaService(BaseServiceTest): "octavia:Deprecated alias of the Octavia driver.", ] 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") def test_octavia_service_post_configuration(self, mock_is_service):