Esempio n. 1
0
 def test_fizz_1(self):
     self.assertEqual(fizz_buzz(3), 'Fizz', msg='should return `Fizz` for number divisible by 3')
Esempio n. 2
0
 def test_fizz_buzz_2(self):
     self.assertEqual(fizz_buzz(105), 'FizzBuzz', msg='should return `FizzBuzz` for number divisible by 3 and 5')
Esempio n. 3
0
 def test_indivisible_2(self):
     self.assertEqual(fizz_buzz(8), 8, msg='should return the number if its in divisible by neither 3 or 5')
Esempio n. 4
0
 def test_buzz_2(self):
     self.assertEqual(fizz_buzz(25), 'Buzz', msg='should return `Buzz` for number divisible by 5')