Returns an ordered dict of ``{attribute_name: Attribute}``.
(self, C)
| 1653 | |
| 1654 | @given(simple_classes()) |
| 1655 | def test_fields_dict(self, C): |
| 1656 | """ |
| 1657 | Returns an ordered dict of ``{attribute_name: Attribute}``. |
| 1658 | """ |
| 1659 | d = fields_dict(C) |
| 1660 | |
| 1661 | assert isinstance(d, dict) |
| 1662 | assert list(fields(C)) == list(d.values()) |
| 1663 | assert [a.name for a in fields(C)] == list(d) |
| 1664 | |
| 1665 | |
| 1666 | class TestConverter: |
nothing calls this directly
no test coverage detected