MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_slice_access

Method test_slice_access

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

Source from the content-addressed store, hash-verified

65 eq_(keyed_tuple[-2:-1], (1,))
66
67 def test_slice_access(self):
68 keyed_tuple = self._fixture([1, 2], ["a", "b"])
69 eq_(keyed_tuple[0:2], (1, 2))
70
71 def test_slices_arent_in_mappings(self):
72 keyed_tuple = self._fixture([1, 2], ["a", "b"])

Callers

nothing calls this directly

Calls 2

_fixtureMethod · 0.95
eq_Function · 0.90

Tested by

no test coverage detected