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

Method test_popitem

tests/unit/test_orderedmap.py:147–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145 "{'two': 2, 'one': 1, %r: 'value', %r: 'another'}" % (d, s))
146
147 def test_popitem(self):
148 item = (1, 2)
149 om = OrderedMap((item,))
150 self.assertEqual(om.popitem(), item)
151 self.assertRaises(KeyError, om.popitem)
152
153 def test_delitem(self):
154 om = OrderedMap({1: 1, 2: 2})

Callers

nothing calls this directly

Calls 2

popitemMethod · 0.95
OrderedMapClass · 0.90

Tested by

no test coverage detected