aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2017-05-16 11:47:14 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-16 11:47:14 +0000
commitccb98c22390fd97a3bb55aa225c7241cc4daa85d (patch)
treef5b7987f8f9888d2c2b5d499aa8b0d4b455605f9 /functest/tests/unit
parent696fb168cd72978c18a9c7f4d9d2ba60b80611ab (diff)
parent648d31af02248b8b2da059e228c10f1e3f81eb5b (diff)
Merge "Modify TestCase.__str__() to use PrettyTable"
Diffstat (limited to 'functest/tests/unit')
-rw-r--r--functest/tests/unit/core/test_testcase.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/functest/tests/unit/core/test_testcase.py b/functest/tests/unit/core/test_testcase.py
index b25ce226..08a717a2 100644
--- a/functest/tests/unit/core/test_testcase.py
+++ b/functest/tests/unit/core/test_testcase.py
@@ -191,11 +191,13 @@ class TestCaseTesting(unittest.TestCase):
def test_str_project_name_ko(self):
self.test.project_name = None
- self.assertIn("INVALID OBJECT", str(self.test))
+ self.assertIn("<functest.core.testcase.TestCase object at",
+ str(self.test))
def test_str_case_name_ko(self):
self.test.case_name = None
- self.assertIn("INVALID OBJECT", str(self.test))
+ self.assertIn("<functest.core.testcase.TestCase object at",
+ str(self.test))
def test_str_pass(self):
duration = '01:01'