(self)
| 171 | return table |
| 172 | |
| 173 | def test_simple(self): |
| 174 | class Point: |
| 175 | pass |
| 176 | |
| 177 | table = self._fixture(Point) |
| 178 | |
| 179 | alias = aliased(Point) |
| 180 | |
| 181 | assert alias.id |
| 182 | assert alias.x |
| 183 | assert alias.y |
| 184 | |
| 185 | assert Point.id.__clause_element__().table is table |
| 186 | assert alias.id.__clause_element__().table is not table |
| 187 | |
| 188 | def test_named_entity(self): |
| 189 | class Point: |
nothing calls this directly
no test coverage detected