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