def test_amount_increases_when_inserting_coin(): turnstile = Turnstile(amount_for_passing=10) turnstile.insert_coin(5) assert turnstile.current_amount() == 5
def test_amount_in_turnstile_is_reset_after_unlocking(): turnstile = Turnstile(amount_for_passing=10) turnstile.insert_coin(15) assert turnstile.current_amount() == 0