MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_simple_property

Method test_simple_property

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

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

_fixtureMethod · 0.95
aliasedFunction · 0.90

Tested by

no test coverage detected