aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVenkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>2018-08-29 19:20:13 +0530
committerVenkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>2018-08-29 19:20:13 +0530
commit938968c4284d863f000b3da4d091d702e97a8360 (patch)
treee10889e4619bcc3ff7bdecbeaefd79d8bd693b0f
parentdeceb71f71bff41d281ca4fff1d2a381d1daea93 (diff)
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 <venkataharshavardhan_ven@srmuniv.edu.in>
-rw-r--r--sfc/unit_tests/unit/lib/test_odl_utils.py2
1 files changed, 1 insertions, 1 deletions
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',