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

Method test_success

tests/test_validators.py:293–299  ·  tests/test_validators.py::TestAnd.test_success

Succeeds if all wrapped validators succeed.

(self)

Source from the content-addressed store, hash-verified

291 assert and_.__name__ in validator_module.__all__
292
293 def test_success(self):
294 class="st">"""
295 Succeeds if all wrapped validators succeed.
296 class="st">"""
297 v = and_(instance_of(int), always_pass)
298
299 v(None, simple_attr(class="st">"test"), 42)
300
301 def test_fail(self):
302 class="st">"""

Callers

nothing calls this directly

Calls 3

instance_ofFunction · 0.90
and_Function · 0.85
simple_attrFunction · 0.85

Tested by

no test coverage detected