Example #1
0
 def test_zero(self):
     with pytest.raises(ValueError):
         inputs.positive(0)
Example #2
0
 def test_negative(self):
     with pytest.raises(ValueError):
         inputs.positive(-1)
Example #3
0
 def test_positive(self):
     assert inputs.positive(1) == 1
     assert inputs.positive(10000) == 10000