def test_get_score_unde_one_color_good(self): perfect_wins = 3 self.assertTrue(5+(perfect_wins*score.PERFECT_WINS_FACTOR) == score.get_score_per_color_and_trump(UNDE_ONE_COLOR_GOOD, 0, 2))
def test_get_score_unde_one_color_bad(self): self.assertTrue(4 == score.get_score_per_color_and_trump(UNDE_ONE_COLOR_BAD, 0, 2))
def test_get_score_obe_one_color_bad(self): self.assertTrue(5 == score.get_score_per_color_and_trump(OBE_ONE_COLOR_BAD, 0, 1))
def test_get_score_obe_one_color_good(self): perfect_wins = 2 self.assertTrue(6+(perfect_wins*score.PERFECT_WINS_FACTOR) == score.get_score_per_color_and_trump(OBE_ONE_COLOR_GOOD, 0, 1))
def test_get_score_trump_when_A_10_8_trump(self): self.assertTrue(3 == score.get_score_per_color_and_trump(A_10_8_TRUMP_ARRAY, 0, 0))
def test_get_score_trump_when_J_9_A_10_trump(self): perfect_wins = 3 self.assertTrue(4+(perfect_wins*score.PERFECT_WINS_FACTOR) == score.get_score_per_color_and_trump(J_9_A_10_TRUMP_ARRAY, 0, 0))
def test_get_score_trump_when_no_trump(self): """We have no trump :(""" self.assertTrue(0 == score.get_score_per_color_and_trump(NO_TRUMP_ARRAY, 0 , 0))