コード例 #1
0
 def test_too_high(self):
     config = Configuration(base_bet=1, payout=10000)
     self.assertFalse(
         config.check_valid_payout(), "Invalid payout value of"
         " 10000 was marked as"
         " valid, but it is too"
         "high")
コード例 #2
0
 def test_too_low(self):
     config = Configuration(base_bet=1, payout=1)
     self.assertFalse(
         config.check_valid_payout(), "Invalid payout value of"
         " 1 was marked as valid,"
         " but it is too low")
コード例 #3
0
 def test_valid_value(self):
     config = Configuration(base_bet=1, payout=3)
     self.assertTrue(config.check_valid_payout(), "Valid payout value of 3"
                     "was marked as invalid")