def tearDown(self): # Destroy all taskdetails from the backend for id in self.td_ids: b_api.taskdetail_destroy(id) # Clear the list of taskdetail names and uuids utils.drain(self.td_names) utils.drain(self.td_ids)
def test_taskdetail_destroy(self): # Destroy the last added taskdetail id = self.td_ids.pop() b_api.taskdetail_destroy(id) self.td_names.pop() # Check that the deleted taskdetail is no longer there self.assertRaises(exception.NotFound, b_api.taskdetail_get, id)
def tearDown(self): # Destroy all taskdetails and flowdetails in the backend for id in self.td_ids: b_api.taskdetail_destroy(id) for id in self.fd_ids: b_api.flowdetail_destroy(id) # Drain the lists of taskdetail and flowdetail uuids and names utils.drain(self.fd_names) utils.drain(self.fd_ids) utils.drain(self.td_names) utils.drain(self.td_ids)