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

Method test_positive_empty

tests/test_funcs.py:531–540  ·  view source on GitHub ↗

Returns `True` on decorated classes even if there are no attributes.

(self)

Source from the content-addressed store, hash-verified

529 assert has(C)
530
531 def test_positive_empty(self):
532 """
533 Returns `True` on decorated classes even if there are no attributes.
534 """
535
536 @attr.s
537 class D:
538 pass
539
540 assert has(D)
541
542 def test_negative(self):
543 """

Callers

nothing calls this directly

Calls 1

hasFunction · 0.90

Tested by

no test coverage detected