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

Method test_attribute_access

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

Source from the content-addressed store, hash-verified

103 eq_(getter(keyed_tuple), (3, 1, 2))
104
105 def test_attribute_access(self):
106 keyed_tuple = self._fixture([1, 2], ["a", "b"])
107 eq_(keyed_tuple.a, 1)
108 eq_(keyed_tuple.b, 2)
109
110 def should_raise():
111 keyed_tuple.c
112
113 assert_raises(AttributeError, should_raise)
114
115 def test_contains(self):
116 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