Beispiel #1
0
 def test_returns_buzz_if_divisible_by_5(self):
     self.assertEqual("Buzz", FizzBuzz.fizzbuzz(5))
Beispiel #2
0
 def test_returns_number_when_not_divisible_by_3_or_5(self):
     self.assertEqual("8", FizzBuzz.fizzbuzz(8))
Beispiel #3
0
 def test_returns_fizz__if_divisible_by_3(self):
     self.assertEqual("Fizz", FizzBuzz.fizzbuzz(3))
Beispiel #4
0
 def test_returns_fizzbuzz_if_divisible_by_3_and_5(self):
     self.assertEqual("FizzBuzz", FizzBuzz.fizzbuzz(15))