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

Function eq_regex

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

Source from the content-addressed store, hash-verified

284
285
286def eq_regex(a, b, msg=None, flags=0):
287 assert re.match(b, a, flags), msg or "%r !~ %r" % (a, b)
288
289
290def eq_(a, b, msg=None):

Calls 1

matchMethod · 0.45