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