Additional logging and better error reporting on assert fail

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-08-14 12:19:43 +05:30
parent 037b5d1c97
commit 095ea6d0b8
1 changed files with 4 additions and 4 deletions

View File

@ -665,12 +665,12 @@ class TestTemplateHierarchy(cloudstackTestCase):
self.assertEqual(
isinstance(templates, list),
True,
"Check List templates for a valid response"
"Template response %s is not a list" % templates
)
self.assertNotEqual(
len(templates),
0,
"Check List Template response"
"No templates found"
)
for template in templates:
@ -691,12 +691,12 @@ class TestTemplateHierarchy(cloudstackTestCase):
self.assertEqual(
isinstance(templates, list),
True,
"Check List templates for a valid response"
"Template response %s is not a list" % templates
)
self.assertNotEqual(
len(templates),
0,
"Check List Service Offerings response"
"No templates found"
)
for template in templates: