def test_match_bid_without_a_match(self): own_bid = ob.create_bid(11, 1, next_year) their_ask = ob.create_ask(12, 1, next_year) their_ask["id"] = 1234 matching_ask = ob.match_bid(own_bid) assert_is_none(matching_ask)
def test_match_bid_without_a_match(self): own_bid = ob.create_bid(11, 1, next_year) their_ask = ob.create_ask(12, 1, next_year) their_ask['id'] = 1234 matching_ask = ob.match_bid(own_bid) assert_is_none(matching_ask)
def test_match_bid(self): own_bid = ob.create_bid(11, 1, next_year) their_ask = ob.create_ask(10, 1, next_year) their_ask["id"] = 1234 matching_ask = ob.match_bid(own_bid) assert_is(matching_ask, their_ask)
def test_match_bid(self): own_bid = ob.create_bid(11, 1, next_year) their_ask = ob.create_ask(10, 1, next_year) their_ask['id'] = 1234 matching_ask = ob.match_bid(own_bid) assert_is(matching_ask, their_ask)