示例#1
0
 def test_div_exception(num1, num2, expection,self):
     assert div(num1, num2) == expection
示例#2
0
 def test_div_string(num1, num2, expection,self):
     assert div(num1, num2) == expection
示例#3
0
def test_div_int(num1, num2, expection):
    assert div(num1, num2) == expection
示例#4
0
 def test_div_float(num1, num2, expection,self):
     assert div(num1, num2) == expection
示例#5
0
def test_div_exception(num1, num2, expection):
    with pytest.raises(ZeroDivisionError):
        assert div(num1, num2) == expection