def test_with_choices_list(self):
    t = types.Integer(choices=[80, 457])
    self.assertRaises(ValueError, t, 1)
    self.assertRaises(ValueError, t, 200)
    self.assertRaises(ValueError, t, (- 457))
    t(80)
    t(457)
def test_with_choices_list(self):
    t = types.Integer(choices=[80, 457])
    self.assertRaises(ValueError, t, 1)
    self.assertRaises(ValueError, t, 200)
    self.assertRaises(ValueError, t, (- 457))
    t(80)
    t(457)