MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_o2m_compare_to_null

Method test_o2m_compare_to_null

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

Source from the content-addressed store, hash-verified

1675 )
1676
1677 def test_o2m_compare_to_null(self):
1678 User = self.classes.User
1679
1680 self._test(User.id == None, "users.id IS NULL") # noqa
1681 self._test(User.id != None, "users.id IS NOT NULL") # noqa
1682 self._test(~(User.id == None), "users.id IS NOT NULL") # noqa
1683 self._test(~(User.id != None), "users.id IS NULL") # noqa
1684 self._test(None == User.id, "users.id IS NULL") # noqa
1685 self._test(~(None == User.id), "users.id IS NOT NULL") # noqa
1686
1687 def test_m2o_compare_to_null(self):
1688 Address = self.classes.Address

Callers

nothing calls this directly

Calls 1

_testMethod · 0.95

Tested by

no test coverage detected