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