mirror of https://github.com/apache/cloudstack.git
Additional logging and better error reporting on assert fail
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
037b5d1c97
commit
095ea6d0b8
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue