Ejemplo n.º 1
0
 def test_fizz_1(self):
     self.assertEqual(fizz_buzz(3),
                      'Fizz',
                      msg='should return `Fizz` for number divisible by 3')
Ejemplo 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')
Ejemplo 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'
     )
Ejemplo n.º 4
0
 def test_buzz_2(self):
     self.assertEqual(fizz_buzz(25),
                      'Buzz',
                      msg='should return `Buzz` for number divisible by 5')