Example #1
0
 def test_positive_negative_input(self):
     assert_raises(ValueError, lambda: types.positive(-1))
Example #2
0
 def test_positive_zero(self):
     assert_raises(ValueError, lambda: types.positive(0))
Example #3
0
 def test_positive(self):
     assert_equal(1, types.positive(1))
     assert_equal(10000, types.positive(10000))
Example #4
0
 def test_positive_negative_input(self):
     assert_raises(ValueError, lambda: types.positive(-1))
Example #5
0
 def test_positive_zero(self):
     assert_raises(ValueError, lambda: types.positive(0))
Example #6
0
 def test_positive(self):
     assert_equal(1, types.positive(1))
     assert_equal(10000, types.positive(10000))