MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / eq_regex

Function eq_regex

lib/sqlalchemy/testing/assertions.py:280–281  ·  view source on GitHub ↗
(a, b, msg=None, flags=0)

Source from the content-addressed store, hash-verified

278
279
280def eq_regex(a, b, msg=None, flags=0):
281 assert re.match(b, a, flags), msg or "%r !~ %r" % (a, b)
282
283
284def eq_(a, b, msg=None):

Calls 1

matchMethod · 0.45