aboutsummaryrefslogtreecommitdiffstats
path: root/functest
diff options
context:
space:
mode:
authorvalentin boucher <valentin.boucher@orange.com>2017-05-22 16:28:47 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-22 16:28:47 +0000
commita32ee348efa6d5858cef97294a94d85bce63d456 (patch)
treebe6ac8777cf6de3bc0fefd5de5cefbcfffb8b7c1 /functest
parent54be27caf1ec50c0b76409b009d3dbcb894f0aca (diff)
parentbfacfb1f9c84a812e3a79befbd96f9570f9072aa (diff)
Merge "Update test_vnf.py to support py3"
Diffstat (limited to 'functest')
-rw-r--r--functest/tests/unit/core/test_vnf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/tests/unit/core/test_vnf.py b/functest/tests/unit/core/test_vnf.py
index e322773e..ce859040 100644
--- a/functest/tests/unit/core/test_vnf.py
+++ b/functest/tests/unit/core/test_vnf.py
@@ -146,12 +146,12 @@ class VnfBaseTesting(unittest.TestCase):
def test_deploy_vnf_unimplemented(self):
with self.assertRaises(Exception) as context:
self.test.deploy_vnf()
- self.assertTrue('VNF not deployed' in context.exception)
+ self.assertIn('VNF not deployed', str(context.exception))
def test_test_vnf_unimplemented(self):
with self.assertRaises(Exception) as context:
self.test.test_vnf()()
- self.assertTrue('VNF not tested' in context.exception)
+ self.assertIn('VNF not tested', str(context.exception))
def test_parse_results_ex_ok(self):
self.test.details['test_vnf']['status'] = 'PASS'