MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_index_error

Method test_index_error

test/base/test_utils.py:77–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 eq_(len(w._storage), 2)
76
77 def test_index_error(self):
78 class Foo:
79 pass
80
81 f1, f2, f3 = Foo(), Foo(), Foo()
82
83 w = WeakSequence()
84 w.append(f1)
85 w.append(f2)
86 w.append(f3)
87 with expect_raises(IndexError):
88 w[4]
89
90
91class MergeListsWOrderingTest(fixtures.TestBase):

Callers

nothing calls this directly

Calls 4

appendMethod · 0.95
WeakSequenceClass · 0.90
expect_raisesFunction · 0.90
FooClass · 0.70

Tested by

no test coverage detected