コード例 #1
0
 def test_highest_offer(self):
     ob.create_bid(1, 1, next_year)
     bid2 = ob.create_bid(2, 1, next_year)
     highest_offer = ob.highest_offer(ob.offers)
     assert_equal(highest_offer, bid2)
コード例 #2
0
 def test_highest_offer(self):
     ob.create_bid(1, 1, next_year)
     bid2 = ob.create_bid(2, 1, next_year)
     highest_offer = ob.highest_offer(ob.offers)
     assert_equal(highest_offer, bid2)
コード例 #3
0
 def test_highest_offer_empty(self):
     highest_offer = ob.highest_offer([])
     assert_is_none(highest_offer)
コード例 #4
0
 def test_highest_offer_empty(self):
     highest_offer = ob.highest_offer([])
     assert_is_none(highest_offer)