(self)
| 123 | self.assertSortedEqual(list(i.values()), ["Keys", "Values", "John"]) |
| 124 | |
| 125 | def test_metaclass_with_fields_attribute(self): |
| 126 | class TestItem(Item): |
| 127 | fields = {"new": Field(default="X")} |
| 128 | |
| 129 | item = TestItem(new="New") |
| 130 | self.assertSortedEqual(list(item.keys()), ["new"]) |
| 131 | self.assertSortedEqual(list(item.values()), ["New"]) |
| 132 | |
| 133 | def test_metaclass_inheritance(self): |
| 134 | class ParentItem(Item): |
nothing calls this directly
no test coverage detected