def test_void(self, capsys):
     with pytest.raises(TypeError):
         d.Division("", 2)
 def test_none(self, capsys):
     with pytest.raises(TypeError):
         d.Division(None, 2)
 def test_ok_3(self, capsys):
     assert d.Division(0, 2).result() == 0.0
 def test_ok_2(self, capsys):
     assert d.Division(-1, 2).result() == -0.5
 def test_ok_1(self, capsys):
     assert d.Division(1, 2).result() == 0.5
 def test_nan_3(self, capsys):
     with pytest.raises(TypeError):
         d.Division("a", "b")
 def test_div0_3(self, capsys):
     with pytest.raises(ZeroDivisionError):
         d.Division(0, 0)