MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_compare_to_none

Method test_compare_to_none

test/orm/dml/test_evaluator.py:108–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 )
107
108 def test_compare_to_none(self):
109 User = self.classes.User
110
111 eval_eq(
112 User.name == None, # noqa
113 testcases=[
114 (User(name="foo"), False),
115 (User(name=None), True),
116 (None, None),
117 ],
118 )
119
120 def test_raise_on_unannotated_matched_column(self):
121 """test originally for warning emitted in #4073,

Callers

nothing calls this directly

Calls 2

eval_eqFunction · 0.85
UserClass · 0.70

Tested by

no test coverage detected