Example #1
0
 def test_return_number_1(self):
     fizzbuzz = Fizzbuzz()
     result = fizzbuzz.fizzbuzz_number(1)
     self.assertEqual(result, 1)
Example #2
0
 def test_return_number_for_7(self):
     fizzbuzz = Fizzbuzz()
     result = fizzbuzz.fizzbuzz_number(7)
     self.assertEqual(result, 7)
Example #3
0
 def test_return_fizzbuzz_for_30(self):
     fizzbuzz = Fizzbuzz()
     result = fizzbuzz.fizzbuzz_number(30)
     self.assertEqual(result, 'Fizzbuzz')
Example #4
0
 def test_return_buzz_for_multiple_of_5(self):
     fizzbuzz = Fizzbuzz()
     result = fizzbuzz.fizzbuzz_number(10)
     self.assertEqual(result, 'Buzz')
Example #5
0
 def test_return_buzz_for_number_5(self):
     fizzbuzz = Fizzbuzz()
     result = fizzbuzz.fizzbuzz_number(5)
     self.assertEqual(result, 'Buzz')
Example #6
0
 def test_return_fizz_for_multiple_of_3(self):
     fizzbuzz = Fizzbuzz()
     result = fizzbuzz.fizzbuzz_number(9)
     self.assertEqual(result, 'Fizz')