def test_remove_offer(self): ask = ob.create_ask(1, 1, next_year) offer = ob.remove_offer(ask["id"], ask["message-id"]) assert_is(offer, ask) assert_equal(ob.offers, [])
def test_remove_offer(self): ask = ob.create_ask(1, 1, next_year) offer = ob.remove_offer(ask['id'], ask['message-id']) assert_is(offer, ask) assert_equal(ob.offers, [])
def test_remove_offer_empty(self): offer = ob.remove_offer(1, 1) assert_is_none(offer)