diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-09-28 17:13:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-28 17:13:34 +0000 |
commit | 0db868278e13d21998bd677bfc782557d44ab381 (patch) | |
tree | da68d24711262194f1d2a4f4753c1ea1a290b453 /tests/unit/network_services/traffic_profile/test_prox_mpls.py | |
parent | ab4ee807fae82dc0b426dfdc562a72ed71ca18e0 (diff) | |
parent | ce9b1175dd9e382c623ee91755b1943eaf0e6cdb (diff) |
Merge "Addition of Prox NSB BNG and BNG-QoS test"
Diffstat (limited to 'tests/unit/network_services/traffic_profile/test_prox_mpls.py')
-rw-r--r-- | tests/unit/network_services/traffic_profile/test_prox_mpls.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/network_services/traffic_profile/test_prox_mpls.py b/tests/unit/network_services/traffic_profile/test_prox_mpls.py index 642fecc35..00a690d2a 100644 --- a/tests/unit/network_services/traffic_profile/test_prox_mpls.py +++ b/tests/unit/network_services/traffic_profile/test_prox_mpls.py @@ -51,10 +51,11 @@ class TestProxMplsTagUntagProfile(unittest.TestCase): fail_tuple = ProxTestDataTuple(10.0, 1, 2, 3, 4, [5.6, 5.7, 5.8], 850, 1000, 123.4) traffic_generator = mock.MagicMock() - traffic_generator.run_test = target profile = ProxMplsTagUntagProfile(tp_config) profile.init(mock.MagicMock()) + profile._profile_helper = profile_helper = mock.MagicMock() + profile_helper.run_test = target profile.execute_traffic(traffic_generator) self.assertEqual(round(profile.current_lower, 2), 74.69) @@ -82,10 +83,11 @@ class TestProxMplsTagUntagProfile(unittest.TestCase): fail_tuple = ProxTestDataTuple(10.0, 1, 2, 3, 4, [5.6, 5.7, 5.8], 850, 1000, 123.4) traffic_generator = mock.MagicMock() - traffic_generator.run_test = target profile = ProxMplsTagUntagProfile(tp_config) profile.init(mock.MagicMock()) + profile._profile_helper = profile_helper = mock.MagicMock() + profile_helper.run_test = target profile.execute_traffic(traffic_generator) self.assertEqual(round(profile.current_lower, 2), 24.06) |