Exemplo n.º 1
0
 def assert_GameScore(self, expected_score, game):
     self.assertEqual(expected_score, bowlingScores.scoreGame(game))
Exemplo n.º 2
0
 def test_decimalInput(self):
     self.assertRaises(TypeError, bowlingScores.scoreGame([0.32, 5, 3, 3]),
                       "Scores must be intergers")
Exemplo n.º 3
0
 def test_highInput(self):
     self.assertRaises(Exception, bowlingScores.scoreGame([14, 5, 3, 3]),
                       "Score is impossibly high")
Exemplo n.º 4
0
 def test_lowInput(self):
     self.assertRaises(Exception, bowlingScores.scoreGame([-1, 5, 3, 3]),
                       "Score is impossibly low")
Exemplo n.º 5
0
 def test_stringInput(self):
     self.assertRaises(TypeError, bowlingScores.scoreGame(str("fffffff")),
                       "Input must be of type list")