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

Method test_fields_properties

tests/test_make.py:1602–1607  ·  tests/test_make.py::TestFields.test_fields_properties

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 class="st">"""
1604 Fields returns a tuple with properties.
1605 class="st">"""
1606 for attribute in fields(C):
1607 assert getattr(fields(C), attribute.name) is attribute
1608
1609 def test_generics(self):
1610 class="st">"""

Callers

nothing calls this directly

Calls 1

fieldsFunction · 0.90

Tested by

no test coverage detected