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