def test_unlisted_value(self):
    self.type_instance = types.String(choices=['foo', 'bar'])
    self.assertInvalid('baz')
def test_unlisted_value(self):
    self.type_instance = types.String(choices=['foo', 'bar'])
    self.assertInvalid('baz')