(self)
| 244 | assert Point.max_x() == alias.max_x() == 100 |
| 245 | |
| 246 | def test_simple_property(self): |
| 247 | class Point: |
| 248 | @property |
| 249 | def max_x(self): |
| 250 | return 100 |
| 251 | |
| 252 | self._fixture(Point) |
| 253 | alias = aliased(Point) |
| 254 | |
| 255 | assert Point.max_x |
| 256 | assert Point.max_x != 100 |
| 257 | assert alias.max_x |
| 258 | assert Point.max_x is alias.max_x |
| 259 | |
| 260 | def test_descriptors(self): |
| 261 | class descriptor: |