MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _assert_hasparent

Method _assert_hasparent

test/orm/test_hasparent.py:81–82  ·  view source on GitHub ↗
(self, a1)

Source from the content-addressed store, hash-verified

79 )
80
81 def _assert_hasparent(self, a1):
82 assert attributes.has_parent(self.classes.User, a1, "addresses")
83
84 def _assert_not_hasparent(self, a1):
85 assert not attributes.has_parent(self.classes.User, a1, "addresses")

Callers 2

Calls 1

has_parentMethod · 0.80

Tested by

no test coverage detected