def test_with_min_zero(self):
    t = types.Integer(min=0, max=456)
    self.assertRaises(ValueError, t, (- 1))
    t(0)
    t(123)
    t(300)
    t(456)
    self.assertRaises(ValueError, t, (- 201))
    self.assertRaises(ValueError, t, 457)
def test_with_min_zero(self):
    t = types.Integer(min=0, max=456)
    self.assertRaises(ValueError, t, (- 1))
    t(0)
    t(123)
    t(300)
    t(456)
    self.assertRaises(ValueError, t, (- 201))
    self.assertRaises(ValueError, t, 457)