MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_classmethod

Method test_classmethod

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

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
aliasedFunction · 0.90
max_xMethod · 0.80

Tested by

no test coverage detected