def test_div_zero(): with pytest.raises(ZeroDivisionError): result = m.div(558, 0)
def test_div_float(): result = m.div(558, 2.) assert result == 558 / 2.
def test_div_float_2(): result = m.div(558.444, 221.1) assert result == 558.444 / 221.1
def test_div(): result = m.div(558, 221) assert result == 558 / 221