def tearDown(self):
        query = self.run_cloud('--query')
        ret = '        {0}:'.format(INSTANCE_NAME)

        # if test instance is still present, delete it
        if ret in query:
            self.run_cloud('-d {0} --assume-yes'.format(INSTANCE_NAME))
Clean up after tests
dataset/ETHPy150Open saltstack/salt/tests/integration/cloud/providers/profitbricks.py/ProfitBricksTest.tearDown