예제 #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))