예제 #1
0
def test_i():
    assert div(2, 2) == 1
예제 #2
0
def test_div_stringparam(num1, num2, expection):
    assert div(num1, num2) == expection
예제 #3
0
def test_div_zeroparam(num1, num2, expection):
    with pytest.raises(eval(expection)):
        div(num1, num2)
예제 #4
0
def test_div_floatparam(num1, num2, expection):
    assert div(num1, num2) == expection