aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/tests/unit/benchmark/contexts/test_heat.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/contexts/test_heat.py
parent31efe64526ae5250b103a313c3041baa79864b5f (diff)
parent3478059d4397c5ee3a1d1e4707c5883afd0974a8 (diff)
Merge "assertTrue(mock.called) -> mock.assert_called"
Diffstat (limited to 'yardstick/tests/unit/benchmark/contexts/test_heat.py')
-rw-r--r--yardstick/tests/unit/benchmark/contexts/test_heat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/tests/unit/benchmark/contexts/test_heat.py b/yardstick/tests/unit/benchmark/contexts/test_heat.py
index c54a7ab12..625f97bf4 100644
--- a/yardstick/tests/unit/benchmark/contexts/test_heat.py
+++ b/yardstick/tests/unit/benchmark/contexts/test_heat.py
@@ -420,7 +420,7 @@ class HeatContextTestCase(unittest.TestCase):
self.test_context.key_filename = 'foo/bar/foobar'
self.test_context.undeploy()
mock_delete_key.assert_called()
- self.assertTrue(mock_template.delete.called)
+ mock_template.delete.assert_called_once()
@mock.patch('yardstick.benchmark.contexts.heat.HeatTemplate')
def test_undeploy_no_teardown(self, mock_template):