def test_delete_list_fail(self): assert not delete(self.session, 10)
def test_delete_list(self): assert len(get_all(self.session)) is 2 delete(self.session, 1) assert len(get_all(self.session)) is 1
def list_delete(list_id): session = Session() if not lists.delete(session, list_id): abort(404) return ""