Change-Id: I86dc83b1fc9205f7b8209d63e18439a7e05c646b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
def test_deploy_vnf_unimplemented(self):
with self.assertRaises(Exception) as context:
self.test.deploy_vnf()
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()()
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'
def test_parse_results_ex_ok(self):
self.test.details['test_vnf']['status'] = 'PASS'
deps =
-r{toxinidir}/requirements.py3.txt
-r{toxinidir}/test-requirements.txt
deps =
-r{toxinidir}/requirements.py3.txt
-r{toxinidir}/test-requirements.txt
-commands = nosetests --exclude=test_vnf {[testenv:py35]dirs}
+commands = nosetests {[testenv:py35]dirs}