def test_length(): game_logic = GameLogic() actual = len(game_logic.roll_dice(5)) expected = 5 assert actual == expected
def test_return_one_thru_six(): for _ in range(1000): actual = GameLogic.roll_dice(1)[0] assert 1 <= actual <= 6
def test_value(): game_logic = GameLogic() actual = game_logic.roll_dice(5) for i in actual: assert isinstance(i, int) assert 1 <= i <= 6
def test_return_six_dice(): six = GameLogic.roll_dice(6) assert type(six) == tuple assert len(six) == 6