MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_const_expr_role

Method test_const_expr_role

test/sql/test_roles.py:109–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 )
108
109 def test_const_expr_role(self):
110 t = true()
111 is_(expect(roles.ConstExprRole, t), t)
112
113 f = false()
114 is_(expect(roles.ConstExprRole, f), f)
115
116 is_instance_of(expect(roles.ConstExprRole, True), True_)
117
118 is_instance_of(expect(roles.ConstExprRole, False), False_)
119
120 is_instance_of(expect(roles.ConstExprRole, None), Null)
121
122 def test_truncated_label_role(self):
123 is_instance_of(

Callers

nothing calls this directly

Calls 5

trueFunction · 0.90
is_Function · 0.90
expectFunction · 0.90
falseFunction · 0.90
is_instance_ofFunction · 0.90

Tested by

no test coverage detected