(self)
| 231 | assert getattr(alias, "zero") |
| 232 | |
| 233 | def test_classmethod(self): |
| 234 | class Point: |
| 235 | @classmethod |
| 236 | def max_x(cls): |
| 237 | return 100 |
| 238 | |
| 239 | self._fixture(Point) |
| 240 | alias = aliased(Point) |
| 241 | |
| 242 | assert Point.max_x |
| 243 | assert alias.max_x |
| 244 | assert Point.max_x() == alias.max_x() == 100 |
| 245 | |
| 246 | def test_simple_property(self): |
| 247 | class Point: |