Additional logging and better error reporting on assert fail Signed-off-by: Prasanna Santhanam <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/095ea6d0 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/095ea6d0 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/095ea6d0 Branch: refs/heads/4.2 Commit: 095ea6d0b8c1a77766d1cecdabbf2b89be4a5491 Parents: 037b5d1 Author: Prasanna Santhanam <[email protected]> Authored: Wed Aug 14 12:19:43 2013 +0530 Committer: Prasanna Santhanam <[email protected]> Committed: Wed Aug 14 15:27:30 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/095ea6d0/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:
