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