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

Method test_custom_capture_match

tests/test_validators.py:1301–1308  ·  view source on GitHub ↗

Match a custom exception provided to `not_`

(self)

Source from the content-addressed store, hash-verified

1299 ) == e.value.args
1300
1301 def test_custom_capture_match(self):
1302 """
1303 Match a custom exception provided to `not_`
1304 """
1305 v = not_(in_("abc"), exc_types=ValueError)
1306 a = simple_attr("test")
1307
1308 v(None, a, "d")
1309
1310 def test_custom_capture_miss(self):
1311 """

Callers

nothing calls this directly

Calls 3

not_Function · 0.90
in_Function · 0.90
simple_attrFunction · 0.85

Tested by

no test coverage detected