diff options
author | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-03-12 09:53:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-12 09:53:40 +0000 |
commit | 066a45edd22be0fa7dec8986b850d672a86ad0a3 (patch) | |
tree | 9fdc414c907c5712c83a2967487b7238dd3510df /yardstick/tests/unit/benchmark/scenarios/networking | |
parent | 31efe64526ae5250b103a313c3041baa79864b5f (diff) | |
parent | 3478059d4397c5ee3a1d1e4707c5883afd0974a8 (diff) |
Merge "assertTrue(mock.called) -> mock.assert_called"
Diffstat (limited to 'yardstick/tests/unit/benchmark/scenarios/networking')
-rw-r--r-- | yardstick/tests/unit/benchmark/scenarios/networking/test_iperf3.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/tests/unit/benchmark/scenarios/networking/test_iperf3.py b/yardstick/tests/unit/benchmark/scenarios/networking/test_iperf3.py index d6636383a..74144afd5 100644 --- a/yardstick/tests/unit/benchmark/scenarios/networking/test_iperf3.py +++ b/yardstick/tests/unit/benchmark/scenarios/networking/test_iperf3.py @@ -65,7 +65,7 @@ class IperfTestCase(unittest.TestCase): p.target = mock_ssh.SSH.from_node() p.teardown() - self.assertTrue(mock_ssh.SSH.from_node().close.called) + mock_ssh.SSH.from_node().close.assert_called() mock_ssh.SSH.from_node().execute.assert_called_with("pkill iperf3") def test_iperf_successful_no_sla(self, mock_ssh): |