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

Method test_repr

tests/test_validators.py:1133–1138  ·  view source on GitHub ↗

Returned validator has a useful `__repr__`.

(self)

Source from the content-addressed store, hash-verified

1131 ) == e.value.args
1132
1133 def test_repr(self):
1134 """
1135 Returned validator has a useful `__repr__`.
1136 """
1137 v = _subclass_of(int)
1138 assert ("<subclass_of validator for type <class 'int'>>") == repr(v)
1139
1140
1141class TestNot_:

Callers

nothing calls this directly

Calls 1

_subclass_ofFunction · 0.90

Tested by

no test coverage detected