(self)
| 2171 | assert as_tuple(Point(1, 2, 3)) == (1, 2, 3) |
| 2172 | |
| 2173 | def test_defstruct_bases_none(self): |
| 2174 | Point = defstruct("Point", ["x", "y"], bases=None) |
| 2175 | assert Point.mro() == [Point, *Struct.mro()] |
| 2176 | assert Point(1, 2) == Point(1, 2) |
| 2177 | |
| 2178 | def test_defstruct_module(self): |
| 2179 | Test = defstruct("Test", [], module="testmod") |