MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_o2m_compare_to_null_aliased

Method test_o2m_compare_to_null_aliased

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

Source from the content-addressed store, hash-verified

1699 )
1700
1701 def test_o2m_compare_to_null_aliased(self):
1702 User = self.classes.User
1703 u1 = aliased(User)
1704 self._test(u1.id == None, "users_1.id IS NULL") # noqa
1705 self._test(u1.id != None, "users_1.id IS NOT NULL") # noqa
1706 self._test(~(u1.id == None), "users_1.id IS NOT NULL") # noqa
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

Callers

nothing calls this directly

Calls 2

_testMethod · 0.95
aliasedFunction · 0.90

Tested by

no test coverage detected