def test_increase_integer(self): config = Configuration(base_bet=4, payout=2, loss_adder=100) simulation = Simulation(config=config, account=self.account) simulation.increase_bet() self.assertEqual(simulation.current_bet, 8, "Current bet was not increased properly in Test 1")
def test_reset_single_roll(self): config = Configuration(base_bet=7, payout=2, loss_adder=200) simulation = Simulation(config=config, account=self.account) simulation.increase_bet() simulation.reset_bet() self.assertEqual(simulation.current_bet, 7, "Bet was not reset properly after it was increased a" " single time")
def test_reset_multiple_rolls(self): config = Configuration(base_bet=10, payout=2, loss_adder=200) simulation = Simulation(config=config, account=self.account) for _ in range(6): simulation.increase_bet() simulation.reset_bet() self.assertEqual(simulation.current_bet, 10, "Bet was not reset properly after it was increased" " multiple times")
def test_reset_single_roll(self): config = Configuration(base_bet=7, payout=2, loss_adder=200) simulation = Simulation(config=config, account=self.account) simulation.increase_bet() simulation.reset_bet() self.assertEqual( simulation.current_bet, 7, "Bet was not reset properly after it was increased a" " single time")
def test_reset_multiple_rolls(self): config = Configuration(base_bet=10, payout=2, loss_adder=200) simulation = Simulation(config=config, account=self.account) for _ in range(6): simulation.increase_bet() simulation.reset_bet() self.assertEqual( simulation.current_bet, 10, "Bet was not reset properly after it was increased" " multiple times")
def test_increase_float(self): config = Configuration(base_bet=1, payout=3, loss_adder=50) simulation = Simulation(config=config, account=self.account) simulation.increase_bet() self.assertEqual(simulation.current_bet, 1.5, "Current bet was not increased properly in Test 2")