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

Method __init__

Lib/test/mapping_tests.py:27–38  ·  view source on GitHub ↗
(self, *args, **kw)

Source from the content-addressed store, hash-verified

25 return self.type2test(data)
26
27 def __init__(self, *args, **kw):
28 unittest.TestCase.__init__(self, *args, **kw)
29 self.reference = self._reference().copy()
30
31 # A (key, value) pair not in the mapping
32 key, value = self.reference.popitem()
33 self.other = {key:value}
34
35 # A (key, value) pair in the mapping
36 key, value = self.reference.popitem()
37 self.inmapping = {key:value}
38 self.reference[key] = value
39
40 def test_read(self):
41 # Test for read only operations on mapping

Callers

nothing calls this directly

Calls 4

_referenceMethod · 0.95
__init__Method · 0.45
copyMethod · 0.45
popitemMethod · 0.45

Tested by

no test coverage detected