MCPcopy
hub / github.com/python-attrs/attrs / SearchTester

Class SearchTester

tests/test_validators.py:235–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233
234 @attr.s
235 class SearchTester:
236 val = attr.ib(validator=matches_re("a", 0, re.search))
237
238 SearchTester("bab") # re.search will match
239

Callers 1

test_different_funcMethod · 0.85

Calls 1

matches_reFunction · 0.90

Tested by 1

test_different_funcMethod · 0.68