def test_returns_fizz_when_divisible__by_three(self):
		"""Test return fizz when input is divisile
		"""
		self.assertEqual(fizz_buzz(3),"fizz")
	def test_returns_buzz_when_divisible__by_five(self):
		"""Test return buzz when input is divisile
		"""
		self.assertEqual(fizz_buzz(5),"buzz")
Beispiel #3
0
 def test_fizz_1(self):
     self.assertEqual(fizz_buzz(3), 'Fizz', msg='should return `Fizz` for number divisible by 3')
Beispiel #4
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')
Beispiel #5
0
 def test_fizz_buzz_2(self):
     self.assertEqual(fizz_buzz(105), 'FizzBuzz', msg='should return `FizzBuzz` for number divisible by 3 and 5')
Beispiel #6
0
 def test_buzz_2(self):
     self.assertEqual(fizz_buzz(25), 'Buzz', msg='should return `Buzz` for number divisible by 5')