Example #1
0
def test_check_fizzbuzz_001():
    """ Given when number is NOT a multiple of 3 and 5"""
    number = 1
    result = check_fizzbuzz(number)
    assert result == "1"
 def test_check_notfizzbuzz(self):
     result = fizzbuzz.check_fizzbuzz(1)
     self.assertEqual(result, "1")
Example #3
0
def test_check_fizzbuzz():
    """ Checks if check_fizzbuzz returns fizzbuzz if the number is divisible by five and three"""
    number = 15
    result = check_fizzbuzz(number)
    assert result == "fizzbuzz"
 def test_check_fizzbuzz(self):
     result = fizzbuzz.check_fizzbuzz(15)
     self.assertEqual(result, "FizzBuzz")