Additional logging and better error reporting on assert fail

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 05bb315636eba87722ce3f49fe61bdd6bc4dcc32)
This commit is contained in:
Prasanna Santhanam 2013-08-14 12:19:43 +05:30
parent 02d1757724
commit 211f519421
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: