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