diff --git a/test/integration/component/test_resource_limits.py b/test/integration/component/test_resource_limits.py index 56b46a3820d..2711a474368 100644 --- a/test/integration/component/test_resource_limits.py +++ b/test/integration/component/test_resource_limits.py @@ -1307,7 +1307,7 @@ class TestResources(cloudstackTestCase): # Get Zone, Domain and templates cls.zone = get_zone(cls.api_client, cls.services) cls._cleanup = [] - return + return @classmethod def tearDownClass(cls): diff --git a/test/integration/component/test_stopped_vm.py b/test/integration/component/test_stopped_vm.py index 231f36c96b1..650de0ee999 100644 --- a/test/integration/component/test_stopped_vm.py +++ b/test/integration/component/test_stopped_vm.py @@ -1568,10 +1568,10 @@ class TestDeployVMFromTemplate(cloudstackTestCase): account=self.account.account.name, domainid=self.account.account.domainid ) - try: - self.template.download(self.apiclient) - except Exception as e: - raise Exception("Template download failed: %s" % e) + try: + self.template.download(self.apiclient) + except Exception as e: + raise Exception("Template download failed: %s" % e) self.cleanup = [self.account] return