Updated Branches: refs/heads/master 6cfcbc665 -> 69462fd0c
CLOUDSTACK-3636: Fix invalid condition to check for empty response for private service offerings Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/69462fd0 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/69462fd0 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/69462fd0 Branch: refs/heads/master Commit: 69462fd0cb17a0e53b42d02e773d87b5a8be14ee Parents: 6cfcbc6 Author: sailajam <[email protected]> Authored: Thu Jul 18 16:52:14 2013 +0530 Committer: sailajam <[email protected]> Committed: Thu Jul 18 17:01:00 2013 +0530 ---------------------------------------------------------------------- test/integration/component/test_accounts.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/69462fd0/test/integration/component/test_accounts.py ---------------------------------------------------------------------- diff --git a/test/integration/component/test_accounts.py b/test/integration/component/test_accounts.py index 55b7331..4350c3f 100644 --- a/test/integration/component/test_accounts.py +++ b/test/integration/component/test_accounts.py @@ -824,22 +824,10 @@ class TestServiceOfferingHierarchy(cloudstackTestCase): domainid=self.domain_2.id ) self.assertEqual( - isinstance(service_offerings, list), - True, + service_offerings, + None, "Check List Service Offerings for a valid response" ) - self.assertNotEqual( - len(service_offerings), - 0, - "Check List Service Offerings response" - ) - - for service_offering in service_offerings: - self.assertEqual( - service_offering.id, - self.service_offering.id, - "Check Service offering ID for domain" + str(self.domain_2.name) - ) return
