예제 #1
0
def test_return_number():
    assert sample.FizzBuzz(1) == 1
예제 #2
0
def test_return_Fizz():
    assert sample.FizzBuzz(3) == 'Fizz'
예제 #3
0
def test_return_fizz():
    assert sample.FizzBuzz(6) == "Fizz"
예제 #4
0
def test_return_Buzz():
    assert sample.FizzBuzz(5) == 'Buzz'
예제 #5
0
def test_return_buzz():
    assert sample.FizzBuzz(10) == "Buzz"
예제 #6
0
def test_when_divisible_by_three_return_fizz():
    assert sample.FizzBuzz(9) == "Fizz"
예제 #7
0
def test_returns_num():
    assert sample.FizzBuzz(2) == 2
예제 #8
0
def test_when_divisible_by_five_and_three_return_fizzbuzz():
    assert sample.FizzBuzz(15) == "FizzBuzz"
예제 #9
0
def test_when_divisible_by_five_return_buzz():
    assert sample.FizzBuzz(10) == "Buzz"