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