Пример #1
0
def test_div_zero_param(num1, num2,exception):
    assert div(num1, num2) == exception
Пример #2
0
def test_div_int():
    assert div(2, 1) == 2
Пример #3
0
def test_div_expection_param(num1, num2):
    assert div(num1, num2)
Пример #4
0
def test_div_float_param(num1, num2, exception):
    assert div(num1, num2) == exception
Пример #5
0
def test_div_zero():
    assert div(2, 0) == None
Пример #6
0
def test_div_expection():
    assert div(10, 'a')
Пример #7
0
def test_div_float():
    assert div(10, 3) == 3.3333333