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

Method test_repr

tests/test_validators.py:449–454  ·  view source on GitHub ↗

Returned validator has a useful `__repr__`.

(self)

Source from the content-addressed store, hash-verified

447 ) == e.value.args
448
449 def test_repr(self):
450 """
451 Returned validator has a useful `__repr__`.
452 """
453 v = in_([3, 4, 5])
454 assert ("<in_ validator with options [3, 4, 5]>") == repr(v)
455
456 def test_is_hashable(self):
457 """

Callers

nothing calls this directly

Calls 1

in_Function · 0.90

Tested by

no test coverage detected