예제 #1
0
    def test_taskdetail_delete(self):
        # Get the taskdetail to delete
        id = self.td_ids.pop()
        td = b_api.taskdetail_get(id)
        # Delete the desired taskdetail
        b_api.taskdetail_delete(td)
        self.td_names.pop()

        # Check that the deleted taskdetail is no longer there
        self.assertRaises(exception.NotFound, b_api.taskdetail_get,
                          id)