diff options
author | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-06-15 08:41:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-06-15 08:41:37 +0000 |
commit | ded989093f16c2d7d8900b2a3afbc0521d474e08 (patch) | |
tree | d8de7db164535907e8c098bc1e4cb69965047b47 /yardstick/tests/unit/benchmark/runner | |
parent | 9008c4f324b368dcd8594b7af76875e9b2720917 (diff) | |
parent | 55d59992c6695e2ba4093b1d76905f3263dfba3e (diff) |
Merge "assert[Greater,Equal] -> assert_{,not_}called"
Diffstat (limited to 'yardstick/tests/unit/benchmark/runner')
-rw-r--r-- | yardstick/tests/unit/benchmark/runner/test_search.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/tests/unit/benchmark/runner/test_search.py b/yardstick/tests/unit/benchmark/runner/test_search.py index 4e5b4fe77..00a241c7c 100644 --- a/yardstick/tests/unit/benchmark/runner/test_search.py +++ b/yardstick/tests/unit/benchmark/runner/test_search.py @@ -38,7 +38,7 @@ class TestSearchRunnerHelper(unittest.TestCase): with helper.get_benchmark_instance(): helper() - self.assertEqual(method.call_count, 1) + method.assert_called_once() def test___call___error(self): cls = mock.MagicMock() @@ -199,4 +199,4 @@ class TestSearchRunner(unittest.TestCase): runner = SearchRunner({}) runner._run_benchmark(cls, 'my_method', scenario_cfg, {}) - self.assertEqual(mock_multi_process.Process.call_count, 1) + mock_multi_process.Process.assert_called_once() |