Esempio n. 1
0
 def test_returns_buzz_if_divisible_by_5(self):
     self.assertEqual("Buzz", FizzBuzz.fizzbuzz(5))
Esempio n. 2
0
 def test_returns_number_when_not_divisible_by_3_or_5(self):
     self.assertEqual("8", FizzBuzz.fizzbuzz(8))
Esempio n. 3
0
 def test_returns_fizz_if_divisible_by_3(self):
     self.assertEqual("Fizz", FizzBuzz.fizzbuzz(3))
Esempio n. 4
0
 def test_return_fizzbuzz_if_divisible_by_3_and_5(self):
     self.assertEqual("FizzBuzz", FizzBuzz.fizzbuzz(15))