Пример #1
0
 def test_one(self):
     ''' Test the perfect bowling session '''
     bowling_test = Bowling("XXXXXXXXXXXX")
     self.assertEqual(bowling_test.show_score(), 300)
Пример #2
0
 def test_three(self):
     ''' test three '''
     bowling_test = Bowling("5/5/5/5/5/5/5/5/5/5/5")
     self.assertEqual(bowling_test.show_score(), 150)
Пример #3
0
 def test_four(self):
     ''' test four '''
     bowling_test = Bowling("X7/9-X-88/-6XXX81")
     self.assertEqual(bowling_test.show_score(), 167)
Пример #4
0
 def test_two(self):
     ''' Test two '''
     bowling_test = Bowling("9-9-9-9-9-9-9-9-9-9-")
     self.assertEqual(bowling_test.show_score(), 90)