Exemple #1
0
 def test_buzz_for_number_5(self):
     fizz_buzz = FizzBuzz()
     self.assertEqual(fizz_buzz.go(5), 'Buzz')
Exemple #2
0
 def test_fizz_for_number_3(self):
     fizz_buzz = FizzBuzz()
     self.assertEqual(fizz_buzz.go(3), 'Fizz')
Exemple #3
0
 def test_fizz_buzz_is_returned_for_multiples_of_15(self):
     fizz_buzz = FizzBuzz()
     self.assertEqual(fizz_buzz.go(30), 'FizzBuzz')
Exemple #4
0
 def test_fizz_buzz_is_returned_for_15(self):
     fizz_buzz = FizzBuzz()
     self.assertEqual(fizz_buzz.go(15), 'FizzBuzz')
Exemple #5
0
 def test_number_is_returned_for_non_multiples_of_3_or_5(self):
     fizz_buzz = FizzBuzz()
     self.assertEqual(fizz_buzz.go(2), 2)
Exemple #6
0
 def test_buzz_for_multiples_of_5(self):
     fizz_buzz = FizzBuzz()
     self.assertEqual(fizz_buzz.go(10), 'Buzz')