def test_int_range_high(self):
     assert_raises(ValueError, lambda: types.int_range(0, 5, 6, 'my_arg'))
 def test_int_range_inclusive(self):
     assert_equal(5, types.int_range(1, 5, 5, 'my_arg'))
 def test_int_range_good(self):
     assert_equal(3, types.int_range(1, 5, 3, 'my_arg'))
Example #4
0
 def test_int_range_high(self):
     assert_raises(ValueError, lambda: types.int_range(0, 5, 6, 'my_arg'))
Example #5
0
 def test_int_range_inclusive(self):
     assert_equal(5, types.int_range(1, 5, 5, 'my_arg'))
Example #6
0
 def test_int_range_good(self):
     assert_equal(3, types.int_range(1, 5, 3, 'my_arg'))