def test_reset_without_rolling(self):
        config = Configuration(base_bet=1, payout=5, loss_adder=100)
        simulation = Simulation(config=config, account=self.account)
        # No increases or decreases made
        simulation.reset_bet()

        self.assertEqual(simulation.current_bet, 1,
                         "Bet was not reset properly when no changes were made"
                         " between resets")
    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")
예제 #4
0
    def test_reset_without_rolling(self):
        config = Configuration(base_bet=1, payout=5, loss_adder=100)
        simulation = Simulation(config=config, account=self.account)
        # No increases or decreases made
        simulation.reset_bet()

        self.assertEqual(
            simulation.current_bet, 1,
            "Bet was not reset properly when no changes were made"
            " between resets")
예제 #5
0
    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")
예제 #6
0
    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")