示例#1
0
 def test_returns_one_if_given_one(self):
     expected = 1
     actual = Fizzbuzz.fizzbuzzer(self.fizzbuzz, 1)
     self.assertEqual(expected, actual)
示例#2
0
 def test_returns_fizzbuzz_if_given_thirty(self):
     self.assertEqual("FizzBuzz", Fizzbuzz.fizzbuzzer(
         self.fizzbuzz, 30))
示例#3
0
 def test_returns_fizzbuzz_if_given_fifteen(self):
     self.assertEqual("FizzBuzz", Fizzbuzz.fizzbuzzer(
         self.fizzbuzz, 15))
示例#4
0
 def test_returns_buzz_if_given_six(self):
     self.assertEqual("Buzz", Fizzbuzz.fizzbuzzer(
         self.fizzbuzz, 6))
示例#5
0
 def test_returns_buzz_if_given_three(self):
     self.assertEqual("Buzz", Fizzbuzz.fizzbuzzer(
         self.fizzbuzz, 3))
示例#6
0
 def test_returns_two_if_given_two(self):
     self.assertEqual(2, Fizzbuzz.fizzbuzzer(
         self.fizzbuzz, 2))