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

Method test_success

tests/test_validators.py:129–134  ·  view source on GitHub ↗

Nothing happens if types match.

(self)

Source from the content-addressed store, hash-verified

127 assert instance_of.__name__ in validator_module.__all__
128
129 def test_success(self):
130 """
131 Nothing happens if types match.
132 """
133 v = instance_of(int)
134 v(None, simple_attr("test"), 42)
135
136 def test_subclass(self):
137 """

Callers

nothing calls this directly

Calls 2

instance_ofFunction · 0.90
simple_attrFunction · 0.85

Tested by

no test coverage detected