MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_simple

Method test_simple

test/orm/test_utils.py:173–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
aliasedFunction · 0.90
__clause_element__Method · 0.45

Tested by

no test coverage detected