MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_true_false

Method test_true_false

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

Source from the content-addressed store, hash-verified

150 # meth(u1)
151
152 def test_true_false(self):
153 User = self.classes.User
154
155 eval_eq(
156 User.name == False, # noqa
157 testcases=[
158 (User(name="foo"), False),
159 (User(name=True), False),
160 (User(name=False), True),
161 (None, None),
162 ],
163 )
164
165 eval_eq(
166 User.name == True, # noqa
167 testcases=[
168 (User(name="foo"), False),
169 (User(name=True), True),
170 (User(name=False), False),
171 (None, None),
172 ],
173 )
174
175 def test_boolean_ops(self):
176 User = self.classes.User

Callers

nothing calls this directly

Calls 2

eval_eqFunction · 0.85
UserClass · 0.70

Tested by

no test coverage detected