Esempio n. 1
0
 def test_one(self):
     ''' Test the perfect bowling session '''
     bowling_test = Bowling("XXXXXXXXXXXX")
     self.assertEqual(bowling_test.show_score(), 300)
Esempio n. 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)
Esempio n. 3
0
 def test_four(self):
     ''' test four '''
     bowling_test = Bowling("X7/9-X-88/-6XXX81")
     self.assertEqual(bowling_test.show_score(), 167)
Esempio n. 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)