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

Method test_fields_properties

tests/test_make.py:1602–1607  ·  view source on GitHub ↗

Fields returns a tuple with properties.

(self, C)

Source from the content-addressed store, hash-verified

1600
1601 @given(simple_classes())
1602 def test_fields_properties(self, C):
1603 """
1604 Fields returns a tuple with properties.
1605 """
1606 for attribute in fields(C):
1607 assert getattr(fields(C), attribute.name) is attribute
1608
1609 def test_generics(self):
1610 """

Callers

nothing calls this directly

Calls 1

fieldsFunction · 0.90

Tested by

no test coverage detected