def test_gamelogic_rolldice_onetosix(): tuple_created = GameLogic.roll_dice(10) actual = True for i in tuple_created: if i < 1 or i > 6: actual = False expected = True assert actual == expected
def test_one_and_five(): actual = GameLogic.calculate_score((1, 5)) expected = 150 assert actual == expected
def test_two_ones(): actual = GameLogic.calculate_score((1, 1)) expected = 200 assert actual == expected
def test_two_fives(): actual = GameLogic.calculate_score((5, 5)) expected = 100 assert actual == expected
def test_single_five(): actual = GameLogic.calculate_score((5, )) expected = 50 assert actual == expected
def test_six_of_a_kind(): actual = GameLogic.calculate_score((2, 2, 2, 2, 2, 2)) expected = 800 assert actual == expected
def test_gamelogic_zilch_roll(): list_created = [3, 2, 2, 4, 6, 6] actual = GameLogic.calculate_score(list_created) expected = 0 assert actual == expected
def test_three_ones(): actual = GameLogic.calculate_score((1, 1, 1, 2, 3, 4)) expected = 1000 assert actual == expected
def test_gamelogic_three_or_more_1(): list_created = [1, 1, 1, 1, 1, 1] actual = GameLogic.calculate_score(list_created) expected = 4000 assert actual == expected
def test_gamelogic_three_or_more_2(): list_created = [4, 4, 4, 4, 5, 6] actual = GameLogic.calculate_score(list_created) expected = 850 assert actual == expected
def test_gamelogic_ones_or_fives(): list_created = [6, 4, 3, 5, 1, 1] actual = GameLogic.calculate_score(list_created) expected = 250 assert actual == expected
def test_gamelogic_three_pairs_true(): list_created = [5, 4, 3, 5, 4, 3] actual = GameLogic.calculate_score(list_created) expected = 1500 assert actual == expected
def test_gamelogic_straight_true(): list_created = [6, 4, 3, 5, 2, 1] actual = GameLogic.calculate_score(list_created) expected = 1500 assert actual == expected
def test_zilch(): actual = GameLogic.calculate_score((2, )) expected = 0 assert actual == expected
def test_gamelogic_three_or_more_3(): list_created = [3, 3, 3, 4, 4, 4] actual = GameLogic.calculate_score(list_created) expected = 700 assert actual == expected
def test_three_fives(): actual = GameLogic.calculate_score((5, 5, 5, 2, 2, 3)) expected = 500 assert actual == expected
def test_gamelogic_three_or_more_4(): list_created = [5, 5, 5, 5, 5, 3] actual = GameLogic.calculate_score(list_created) expected = 1500 assert actual == expected
def test_three_ones_and_a_five(): actual = GameLogic.calculate_score((1, 1, 1, 5)) expected = 1050 assert actual == expected
def test_single_one(): actual = GameLogic.calculate_score((1, )) expected = 100 assert actual == expected
def test_straight(): actual = GameLogic.calculate_score((1, 6, 3, 2, 5, 4)) expected = 1500 assert actual == expected
def test_all(test_input, expected): actual = GameLogic.calculate_score(test_input) assert actual == expected
def test_six_ones(): actual = GameLogic.calculate_score((1, 1, 1, 1, 1, 1)) expected = 4000 assert actual == expected
def test_gamelogic_rolldice_six(): tuple_created = GameLogic.roll_dice(6) actual = len(tuple_created) expected = 6 assert actual == expected