Пример #1
0
 def test_default_bet_negative_funds(self):
   s = RandomStrategy()
   funds = -100.0
   actual = s.bet(funds=funds)
   self.assertTrue(actual >= 0)
Пример #2
0
 def test_default_bet_low_funds(self):
   s = RandomStrategy()
   funds = 100.0
   actual = s.bet(funds=funds)
   self.assertTrue(actual <= funds)
   self.assertTrue(actual >= 0)