Exemple #1
0
 def test_fizz_mul(self):
     fb = FizzBuzz(3, 5)
     self.assertEqual(fb.say(9), "Fizz")
Exemple #2
0
 def test_x(self):
     fb = FizzBuzz(3, 5)
     x = 107
     self.assertEqual(fb.say(x), str(x))
Exemple #3
0
 def test_fizz_buzz_3(self):
     fb = FizzBuzz(3, 5)
     self.assertEqual(fb.say(53), "FizzBuzz")
Exemple #4
0
 def test_buzz_contains(self):
     fb = FizzBuzz(3, 5)
     self.assertEqual(fb.say(55), "Buzz")
Exemple #5
0
 def test_fizz_contains(self):
     fb = FizzBuzz(3, 5)
     self.assertEqual(fb.say(13), "Fizz")
Exemple #6
0
 def test_buzz(self):
     fb = FizzBuzz(3, 5)
     self.assertEqual(fb.say(5), "Buzz")