MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / test_remove

Method test_remove

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

Source from the content-addressed store, hash-verified

193 pass
194
195 def test_remove(self):
196 ss = sortedset([2, 1])
197 self.assertEqual(len(ss), 2)
198 self.assertRaises(KeyError, ss.remove, 3)
199 self.assertEqual(len(ss), 2)
200 ss.remove(1)
201 self.assertEqual(len(ss), 1)
202 ss.remove(2)
203 self.assertFalse(ss)
204 self.assertRaises(KeyError, ss.remove, 2)
205 self.assertFalse(ss)
206
207 def test_getitem(self):
208 ss = sortedset(range(3))

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected