MCPcopy Index your code
hub / github.com/python/cpython / test_pop

Method test_pop

Lib/test/mapping_tests.py:531–540  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

529 self.assertTrue(not b)
530
531 def test_pop(self):
532 BasicTestMappingProtocol.test_pop(self)
533
534 # Tests for pop with specified key
535 d = self._empty_mapping()
536 k, v = 'abc', 'def'
537
538 self.assertEqual(d.pop(k, v), v)
539 d[k] = v
540 self.assertEqual(d.pop(k, 1), v)
541
542
543class TestHashMappingProtocol(TestMappingProtocol):

Callers 1

test_popMethod · 0.45

Calls 3

_empty_mappingMethod · 0.45
assertEqualMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected