Browse Source

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
tags/3.0.2^0
Martin Kopec 1 month ago
parent
commit
c3771689de
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config_tempest/tests/services/test_octavia.py

+ 1
- 1
config_tempest/tests/services/test_octavia.py View File

@@ -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):


Loading…
Cancel
Save