MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_instancemethod

Method test_instancemethod

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

Source from the content-addressed store, hash-verified

219 assert_raises(TypeError, alias)
220
221 def test_instancemethod(self):
222 class Point:
223 def zero(self):
224 self.x, self.y = 0, 0
225
226 self._fixture(Point)
227 alias = aliased(Point)
228
229 assert Point.zero
230
231 assert getattr(alias, "zero")
232
233 def test_classmethod(self):
234 class Point:

Callers

nothing calls this directly

Calls 2

_fixtureMethod · 0.95
aliasedFunction · 0.90

Tested by

no test coverage detected