From 938968c4284d863f000b3da4d091d702e97a8360 Mon Sep 17 00:00:00 2001 From: Venkata Harshavardhan Reddy Allu Date: Wed, 29 Aug 2018 19:20:13 +0530 Subject: Change the test result comparison in 'test_odl_utils.py' #L103 When 'get_active_rsps_on_ports' is executed, it returns a list of unordered dictionaries, sorting the result to verify the return value would fix the test assertion. Change-Id: Id39dc8d15f9efb0ef76168f823d7d52333474e16 Signed-off-by: Venkata Harshavardhan Reddy Allu --- sfc/unit_tests/unit/lib/test_odl_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfc/unit_tests') diff --git a/sfc/unit_tests/unit/lib/test_odl_utils.py b/sfc/unit_tests/unit/lib/test_odl_utils.py index d408a814..d151a1ca 100644 --- a/sfc/unit_tests/unit/lib/test_odl_utils.py +++ b/sfc/unit_tests/unit/lib/test_odl_utils.py @@ -100,7 +100,7 @@ class SfcOdlUtilsTesting(unittest.TestCase): 'odl_port', neutron_ports) - self.assertEqual(expected, result) + self.assertEqual(sorted(expected), sorted(result)) mock_log.warn.assert_has_calls(log_calls) mock_rsps_from_netvirt_acl_actions.assert_called_once_with('odl_ip', 'odl_port', -- cgit 1.2.3-korg