add class cleanup method (#3632)

This commit is contained in:
dahn 2019-11-19 15:07:10 +01:00 committed by GitHub
parent c8681f5837
commit c863cc22b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,14 @@ class TestQuota(cloudstackTestCase):
]
return
@classmethod
def tearDownClass(cls):
try:
cleanup_resources(cls.apiclient, cls._cleanup)
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
return
def setUp(self):
self.apiclient = self.testClient.getApiClient()
self.hypervisor = self.testClient.getHypervisorInfo()