def test_points_calculation(self): dice = (1, 2, 3, 4, 5, 6) points = DiceCalculator.calculate_dice_points(dice) self.assertEqual(points, 3000) dice = (1, 1, 3, 3, 4, 4) points = DiceCalculator.calculate_dice_points(dice) self.assertEqual(points, 1500) dice = (6, 6, 6, 1, 1, 1) points = DiceCalculator.calculate_dice_points(dice) self.assertEqual(points, 1600) dice = (1, 5) points = DiceCalculator.calculate_dice_points(dice) self.assertEqual(points, 150) dice = (1, 1, 1, 1, 5) points = DiceCalculator.calculate_dice_points(dice) self.assertEqual(points, 1150) dice = (5, 5, 5, 1) points = DiceCalculator.calculate_dice_points(dice) self.assertEqual(points, 600) dice = () with self.assertRaises(InvalidSelectionError): DiceCalculator.calculate_dice_points(dice)
def calculate_dice_points(self, selected_dice): return DiceCalculator.calculate_dice_points(selected_dice)