def test_match_ask_without_a_match(self): own_ask = ob.create_ask(11, 1, next_year) their_bid = ob.create_bid(10, 1, next_year) their_bid["id"] = 1234 matching_bid = ob.match_ask(own_ask) assert_is_none(matching_bid)
def test_match_ask_without_a_match(self): own_ask = ob.create_ask(11, 1, next_year) their_bid = ob.create_bid(10, 1, next_year) their_bid['id'] = 1234 matching_bid = ob.match_ask(own_ask) assert_is_none(matching_bid)
def test_match_ask(self): own_ask = ob.create_ask(11, 1, next_year) their_bid = ob.create_bid(12, 1, next_year) their_bid["id"] = 1234 matching_bid = ob.match_ask(own_ask) assert_is(matching_bid, their_bid)
def test_match_ask(self): own_ask = ob.create_ask(11, 1, next_year) their_bid = ob.create_bid(12, 1, next_year) their_bid['id'] = 1234 matching_bid = ob.match_ask(own_ask) assert_is(matching_bid, their_bid)