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

Method test_repr

tests/test_validators.py:159–164  ·  tests/test_validators.py::TestInstanceOf.test_repr

Returned validator has a useful `__repr__`.

(self)

Source from the content-addressed store, hash-verified

157 ) == e.value.args
158
159 def test_repr(self):
160 class="st">"""
161 Returned validator has a useful `__repr__`.
162 class="st">"""
163 v = instance_of(int)
164 assert (class="st">"<instance_of validator for type <class &class="cm">#x27;int'>>") == repr(v)
165
166
167class TestMatchesRe:

Callers

nothing calls this directly

Calls 1

instance_ofFunction · 0.90

Tested by

no test coverage detected