MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_check_descriptor_as_method

Method test_check_descriptor_as_method

test/orm/test_mapper.py:677–686  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

675 eq_(len(b_calls), 3)
676
677 def test_check_descriptor_as_method(self):
678 User, users = self.classes.User, self.tables.users
679
680 m = self.mapper(User, users)
681
682 class MyClass(User):
683 def foo(self):
684 pass
685
686 assert m._is_userland_descriptor("foo", MyClass.foo)
687
688 @testing.variation(
689 "attr_type",

Callers

nothing calls this directly

Calls 2

mapperMethod · 0.45

Tested by

no test coverage detected