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