aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/tests/unit/benchmark/scenarios/lib/test_create_network.py
diff options
context:
space:
mode:
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>2018-03-12 09:53:40 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-12 09:53:40 +0000
commit066a45edd22be0fa7dec8986b850d672a86ad0a3 (patch)
tree9fdc414c907c5712c83a2967487b7238dd3510df /yardstick/tests/unit/benchmark/scenarios/lib/test_create_network.py
parent31efe64526ae5250b103a313c3041baa79864b5f (diff)
parent3478059d4397c5ee3a1d1e4707c5883afd0974a8 (diff)
Merge "assertTrue(mock.called) -> mock.assert_called"
Diffstat (limited to 'yardstick/tests/unit/benchmark/scenarios/lib/test_create_network.py')
-rw-r--r--yardstick/tests/unit/benchmark/scenarios/lib/test_create_network.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/tests/unit/benchmark/scenarios/lib/test_create_network.py b/yardstick/tests/unit/benchmark/scenarios/lib/test_create_network.py
index ad4adeeb2..cea60c319 100644
--- a/yardstick/tests/unit/benchmark/scenarios/lib/test_create_network.py
+++ b/yardstick/tests/unit/benchmark/scenarios/lib/test_create_network.py
@@ -26,5 +26,5 @@ class CreateNetworkTestCase(unittest.TestCase):
args = {"options": options}
obj = CreateNetwork(args, {})
obj.run({})
- self.assertTrue(mock_get_neutron_client.called)
- self.assertTrue(mock_create_neutron_net.called)
+ mock_get_neutron_client.assert_called_once()
+ mock_create_neutron_net.assert_called_once()