def test_repr_with_choices(self):
    t = types.String(choices=['foo', 'bar'])
    self.assertEqual("String(choices=['foo', 'bar'])", repr(t))
def test_repr_with_choices(self):
    t = types.String(choices=['foo', 'bar'])
    self.assertEqual("String(choices=['foo', 'bar'])", repr(t))