コード例 #1
0
 def test_match_incoming_bid_without_a_match(self):
     ob.create_ask(12, 1, next_year)
     their_bid = ob.create_bid(11, 1, next_year)
     their_bid["id"] = 1234
     matching_ask = ob.match_incoming_bid(their_bid)
     assert_is_none(matching_ask)
コード例 #2
0
 def test_match_incoming_bid_without_a_match(self):
     ob.create_ask(12, 1, next_year)
     their_bid = ob.create_bid(11, 1, next_year)
     their_bid['id'] = 1234
     matching_ask = ob.match_incoming_bid(their_bid)
     assert_is_none(matching_ask)
コード例 #3
0
 def test_match_incoming_bid(self):
     own_ask = ob.create_ask(11, 1, next_year)
     their_bid = ob.create_bid(12, 1, next_year)
     their_bid["id"] = 1234
     matching_ask = ob.match_incoming_bid(their_bid)
     assert_is(matching_ask, own_ask)
コード例 #4
0
 def test_match_incoming_bid(self):
     own_ask = ob.create_ask(11, 1, next_year)
     their_bid = ob.create_bid(12, 1, next_year)
     their_bid['id'] = 1234
     matching_ask = ob.match_incoming_bid(their_bid)
     assert_is(matching_ask, own_ask)