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

Method test_accepts_all_valid_func

tests/test_validators.py:258–262  ·  view source on GitHub ↗

Every valid match function is accepted.

(self, func)

Source from the content-addressed store, hash-verified

256 "func", [None, getattr(re, "fullmatch", None), re.match, re.search]
257 )
258 def test_accepts_all_valid_func(self, func):
259 """
260 Every valid match function is accepted.
261 """
262 matches_re("a", func=func)
263
264 def test_repr(self):
265 """

Callers

nothing calls this directly

Calls 1

matches_reFunction · 0.90

Tested by

no test coverage detected