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

Method test_success

tests/test_validators.py:129–134  ·  tests/test_validators.py::TestInstanceOf.test_success

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 class="st">"""
131 Nothing happens if types match.
132 class="st">"""
133 v = instance_of(int)
134 v(None, simple_attr(class="st">"test"), 42)
135
136 def test_subclass(self):
137 class="st">"""

Callers

nothing calls this directly

Calls 2

instance_ofFunction · 0.90
simple_attrFunction · 0.85

Tested by

no test coverage detected