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

Method test_repr

tests/test_validators.py:848–853  ·  view source on GitHub ↗

Returned validator has a useful `__repr__`.

(self)

Source from the content-addressed store, hash-verified

846 assert value == e.value.value
847
848 def test_repr(self):
849 """
850 Returned validator has a useful `__repr__`.
851 """
852 v = is_callable()
853 assert "<is_callable validator>" == repr(v)
854
855 def test_exception_repr(self):
856 """

Callers

nothing calls this directly

Calls 1

is_callableFunction · 0.90

Tested by

no test coverage detected