MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_instance_access

Method test_instance_access

test/ext/test_hybrid.py:1073–1082  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1071 is_false(hasattr(A.string_expr_value_syn, "nonexistent"))
1072
1073 def test_instance_access(self):
1074 A = self._fixture()
1075
1076 a1 = A(_value="hi")
1077
1078 eq_(a1.value_syn, "hi")
1079
1080 eq_(a1.string_value_syn, "foo")
1081
1082 eq_(a1.string_expr_value_syn, "foo")
1083
1084 def test_expression_property(self):
1085 A = self._fixture()

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
eq_Function · 0.90
AClass · 0.70

Tested by

no test coverage detected