MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / test_pop

Method test_pop

tests/unit/test_sortedset.py:185–193  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

183 self.assertEqual(ss2.symmetric_difference(ss), sortedset([2, 3, 4, 5, 6, 7]))
184
185 def test_pop(self):
186 ss = sortedset([2, 1])
187 self.assertEqual(ss.pop(), 2)
188 self.assertEqual(ss.pop(), 1)
189 try:
190 ss.pop()
191 self.fail("Error not thrown")
192 except (KeyError, IndexError) as e:
193 pass
194
195 def test_remove(self):
196 ss = sortedset([2, 1])

Callers

nothing calls this directly

Calls 1

popMethod · 0.45

Tested by

no test coverage detected