Additional logging and better error reporting on assert fail

Signed-off-by: Prasanna Santhanam <t...@apache.org>
(cherry picked from commit 05bb315636eba87722ce3f49fe61bdd6bc4dcc32)


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/211f5194
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/211f5194
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/211f5194

Branch: refs/heads/master
Commit: 211f519421d04792f1196e189dedeb9195f8230b
Parents: 02d1757
Author: Prasanna Santhanam <t...@apache.org>
Authored: Wed Aug 14 12:19:43 2013 +0530
Committer: Prasanna Santhanam <t...@apache.org>
Committed: Wed Aug 14 15:27:42 2013 +0530

----------------------------------------------------------------------
 test/integration/component/test_accounts.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/211f5194/test/integration/component/test_accounts.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_accounts.py 
b/test/integration/component/test_accounts.py
index cf18bef..06b78e6 100644
--- a/test/integration/component/test_accounts.py
+++ b/test/integration/component/test_accounts.py
@@ -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:

Reply via email to