def test_regex_fails(self):
    self.type_instance = types.String(regex=re.compile('^[A-Z]'))
    self.assertInvalid('foo')
def test_regex_fails(self):
    self.type_instance = types.String(regex=re.compile('^[A-Z]'))
    self.assertInvalid('foo')