aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-05-22 04:04:06 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-05-22 04:04:06 +0200
commitbfacfb1f9c84a812e3a79befbd96f9570f9072aa (patch)
tree5e6ad69a2bad4f040707bfb244260fecf5138335
parentab7583ae9dfc9b387b579db9639eab26daf2be26 (diff)
Update test_vnf.py to support py3
Change-Id: I86dc83b1fc9205f7b8209d63e18439a7e05c646b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/tests/unit/core/test_vnf.py4
-rw-r--r--tox.ini2
2 files changed, 3 insertions, 3 deletions
diff --git a/functest/tests/unit/core/test_vnf.py b/functest/tests/unit/core/test_vnf.py
index e322773ed..ce8590400 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'
diff --git a/tox.ini b/tox.ini
index efaa8d6b6..bde3a9757 100644
--- a/tox.ini
+++ b/tox.ini
@@ -40,4 +40,4 @@ dirs =
deps =
-r{toxinidir}/requirements.py3.txt
-r{toxinidir}/test-requirements.txt
-commands = nosetests --exclude=test_vnf {[testenv:py35]dirs}
+commands = nosetests {[testenv:py35]dirs}