import unittest
from game import Game

class BowlingGameTest(unittest.TestCase):

    def setUp(self):
        self.g = Game()

    def tearDown(self):
        self.g = None

    def _roll_many(self, n, pins):
        "Roll 'n' times a roll of 'pins' pins"
        for i in range(n):
            self.g.roll(pins)

    def _roll_spare(self):
        "Roll a spare"
        self.g.roll(5)
        self.g.roll(5)

    def test_gutter_game(self):
        self._roll_many(20, 0)
        self.assertEqual(0, self.g.score())

    def test_all_ones(self):
        self._roll_many(20, 1)
        self.assertEqual(20, self.g.score())

    def test_one_spare(self):
        self._roll_spare()
        self.g.roll(3)
        self._roll_many(17, 0)
        self.assertEqual(16, self.g.score())

if __name__ == '__main__':
    unittest.main()

@@ -405,16 +405,93 @@
 oll(5)%0A%0A
+    def _roll_strike(self):%0A        %22Roll a strike%22%0A        self.g.roll(10)%0A%0A
     def 
@@ -853,16 +853,198 @@
 ore())%0A%0A
+    def test_one_strike(self):%0A        self._roll_strike()%0A        self.g.roll(3)%0A        self.g.roll(4)%0A        self._roll_many(16, 0)%0A        self.assertEqual(24, self.g.score())%0A%0A
 if __nam

Test one strike score