示例#1
0
 def test_delete_list_fail(self):
     assert not delete(self.session, 10)
示例#2
0
    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
示例#3
0
def list_delete(list_id):
    session = Session()
    if not lists.delete(session, list_id):
        abort(404)
    return ""