def cleanup(self):
        self.logit("Cleaning up...")
        for item in self.cleanup_items:
            try:
                item.delete()
                self.logit(" - Deleting:", end=' ')
                try:
                    self.logit(item.name)
                except AttributeError:
                    self.logit(item)
            except exc.NotFound:
                # Some items are deleted along with others (e.g., DNS records
                # when a domain is deleted), so don't complain.
                pass
            except Exception as e:
                self.logit("Could not delete '%s': %s" % (item, e))
dataset/ETHPy150Open rackspace/pyrax/tests/integrated/smoketest.py/SmokeTester.cleanup/original