aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/tests/unit/benchmark/scenarios/networking/test_ping.py
diff options
context:
space:
mode:
authorAbhijit Sinha <abhijit.sinha@intel.com>2018-06-18 10:53:37 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-06-18 10:53:37 +0000
commit6ff516b16246e18c0c452905d6e0806db4e53cc0 (patch)
treee0630b3945212e3767920e486f388584c2c467c7 /yardstick/tests/unit/benchmark/scenarios/networking/test_ping.py
parent64add9a435e9455b3bff6971d2717857cdce8193 (diff)
parent39f80e9b06395ae1515cfcf08508504ad4dd978a (diff)
Merge "Convert SLA asserts to raises"
Diffstat (limited to 'yardstick/tests/unit/benchmark/scenarios/networking/test_ping.py')
-rw-r--r--yardstick/tests/unit/benchmark/scenarios/networking/test_ping.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yardstick/tests/unit/benchmark/scenarios/networking/test_ping.py b/yardstick/tests/unit/benchmark/scenarios/networking/test_ping.py
index 4adfab120..559e0599e 100644
--- a/yardstick/tests/unit/benchmark/scenarios/networking/test_ping.py
+++ b/yardstick/tests/unit/benchmark/scenarios/networking/test_ping.py
@@ -14,6 +14,7 @@ import mock
import unittest
from yardstick.benchmark.scenarios.networking import ping
+from yardstick.common import exceptions as y_exc
class PingTestCase(unittest.TestCase):
@@ -74,7 +75,7 @@ class PingTestCase(unittest.TestCase):
p = ping.Ping(args, self.ctx)
mock_ssh.SSH.from_node().execute.return_value = (0, '100', '')
- self.assertRaises(AssertionError, p.run, result)
+ self.assertRaises(y_exc.SLAValidationError, p.run, result)
@mock.patch('yardstick.benchmark.scenarios.networking.ping.ssh')
def test_ping_unsuccessful_script_error(self, mock_ssh):