MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_attribute_access

Method test_attribute_access

test/base/test_result.py:109–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 eq_(getter(keyed_tuple), (3, 1, 2))
108
109 def test_attribute_access(self):
110 keyed_tuple = self._fixture([1, 2], ["a", "b"])
111 eq_(keyed_tuple.a, 1)
112 eq_(keyed_tuple.b, 2)
113
114 def should_raise():
115 keyed_tuple.c
116
117 assert_raises(AttributeError, should_raise)
118
119 def test_contains(self):
120 keyed_tuple = self._fixture(["x", "y"], ["a", "b"])

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
eq_Function · 0.90
assert_raisesFunction · 0.90

Tested by

no test coverage detected