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

Method _reference

Lib/test/mapping_tests.py:15–18  ·  view source on GitHub ↗

Return a dictionary of values which are invariant by storage in the object under test.

(self)

Source from the content-addressed store, hash-verified

13 type2test = None # which class is being tested (overwrite in subclasses)
14
15 def _reference(self):
16 """Return a dictionary of values which are invariant by storage
17 in the object under test."""
18 return {"1": "2", "key1":"value1", "key2":(1,2,3)}
19 def _empty_mapping(self):
20 """Return an empty mapping object"""
21 return self.type2test()

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected