def test_flowdetail_destroy(self): # Destroy the last added flowdetail id = self.fd_ids.pop() b_api.flowdetail_destroy(id) self.fd_names.pop() # Check to make sure the removed flowdetail is no longer there self.assertRaises(exception.NotFound, b_api.flowdetail_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)
def tearDown(self): # Destroy all flowdetails and logbooks in the backend for id in self.fd_ids: b_api.flowdetail_destroy(id) for id in self.lb_ids: b_api.logbook_destroy(id) # Clear the lists of logbook and flowdetail uuids and names utils.drain(self.lb_names) utils.drain(self.lb_ids) utils.drain(self.fd_names) utils.drain(self.fd_ids)