def tearDownClass(cls): fail_count = cls.cleanUp(cls._global_resource_trash_bin) super(EC2TestCase, cls).tearDownClass() if fail_count: raise exceptions.TempestException("%d cleanUp operation failed" % fail_count)
def tearDown(self): fail_count = self.cleanUp(self._resource_trash_bin) super(EC2TestCase, self).tearDown() if fail_count: raise exceptions.TempestException("%d cleanUp operation failed" % fail_count)