Example #1
0
def test_num_fail():
    actual = fizz_buzz(2)
    expected = 1
    assert actual != expected
Example #2
0
def test_fizz_buzz_pass():
    actual = fizz_buzz(15)
    expected = 'FizzBuzz'
    assert actual == expected
Example #3
0
def test_num_pass():
    actual = fizz_buzz(2)
    expected = 2
    assert actual == expected
Example #4
0
def test_buzz_fail():
    actual = fizz_buzz(7)
    expected = 'Buzz'
    assert actual != expected
Example #5
0
def test_buzz_pass():
    actual = fizz_buzz(5)
    expected = "Buzz"
    assert actual == expected
Example #6
0
def test_fizz_fail():
    actual = fizz_buzz(4)
    expected = "Fizz"
    assert actual != expected
Example #7
0
def test_fizz_buzz_fail():
    actual = fizz_buzz(15)
    expected = 'FizzBuz'
    assert actual != expected