Ejemplo n.º 1
0
 def test_match_incoming_ask_without_a_match(self):
     ob.create_bid(11, 1, next_year)
     their_ask = ob.create_ask(12, 1, next_year)
     their_ask["id"] = 1234
     matching_bid = ob.match_incoming_ask(their_ask)
     assert_is(matching_bid, None)
 def test_match_incoming_ask_without_a_match(self):
     ob.create_bid(11, 1, next_year)
     their_ask = ob.create_ask(12, 1, next_year)
     their_ask['id'] = 1234
     matching_bid = ob.match_incoming_ask(their_ask)
     assert_is(matching_bid, None)
Ejemplo n.º 3
0
 def test_match_incoming_ask(self):
     own_bid = ob.create_bid(12, 1, next_year)
     their_ask = ob.create_ask(11, 1, next_year)
     their_ask["id"] = 1234
     matching_bid = ob.match_incoming_ask(their_ask)
     assert_is(matching_bid, own_bid)
 def test_match_incoming_ask(self):
     own_bid = ob.create_bid(12, 1, next_year)
     their_ask = ob.create_ask(11, 1, next_year)
     their_ask['id'] = 1234
     matching_bid = ob.match_incoming_ask(their_ask)
     assert_is(matching_bid, own_bid)