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