def test_regex_matches(self):
    self.type_instance = types.String(regex=re.compile('^[A-Z]'))
    self.assertConvertedValue('Foo', 'Foo')
def test_regex_matches(self):
    self.type_instance = types.String(regex=re.compile('^[A-Z]'))
    self.assertConvertedValue('Foo', 'Foo')