MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_contains_mapper

Method test_contains_mapper

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

Source from the content-addressed store, hash-verified

908 is_(obj != non_object, True)
909
910 def test_contains_mapper(self):
911 umapper = inspect(self.classes.User)
912 amapper = inspect(self.classes.Address)
913 p1 = PathRegistry.coerce((umapper, umapper.attrs.addresses))
914 assert p1.contains_mapper(umapper)
915 assert not p1.contains_mapper(amapper)
916
917 def test_path(self):
918 umapper = inspect(self.classes.User)

Callers

nothing calls this directly

Calls 3

inspectFunction · 0.90
contains_mapperMethod · 0.80
coerceMethod · 0.45

Tested by

no test coverage detected