MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_m2o_compare_to_null_aliased

Method test_m2o_compare_to_null_aliased

test/orm/test_query.py:1709–1717  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1707 self._test(~(u1.id != None), "users_1.id IS NULL") # noqa
1708
1709 def test_m2o_compare_to_null_aliased(self):
1710 Address = self.classes.Address
1711 a1 = aliased(Address)
1712 self._test(a1.user == None, "addresses_1.user_id IS NULL") # noqa
1713 self._test(
1714 ~(a1.user == None), "addresses_1.user_id IS NOT NULL" # noqa
1715 )
1716 self._test(a1.user != None, "addresses_1.user_id IS NOT NULL") # noqa
1717 self._test(~(a1.user != None), "addresses_1.user_id IS NULL") # noqa
1718
1719 def test_relationship_unimplemented(self):
1720 User = self.classes.User

Callers

nothing calls this directly

Calls 2

_testMethod · 0.95
aliasedFunction · 0.90

Tested by

no test coverage detected