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

Method test_negative

tests/test_funcs.py:542–546  ·  tests/test_funcs.py::TestHas.test_negative

Returns `False` on non-decorated classes.

(self)

Source from the content-addressed store, hash-verified

540 assert has(D)
541
542 def test_negative(self):
543 class="st">"""
544 Returns `False` on non-decorated classes.
545 class="st">"""
546 assert not has(object)
547
548 def test_generics(self):
549 class="st">"""

Callers

nothing calls this directly

Calls 1

hasFunction · 0.90

Tested by

no test coverage detected