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

Method test_import_mapping

Lib/test/test_pickle.py:644–653  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

642 pass
643
644 def test_import_mapping(self):
645 for module3, module2 in REVERSE_IMPORT_MAPPING.items():
646 with self.subTest((module3, module2)):
647 try:
648 getmodule(module3)
649 except ImportError:
650 pass
651 if module3[:1] != '_':
652 self.assertIn(module2, IMPORT_MAPPING)
653 self.assertEqual(IMPORT_MAPPING[module2], module3)
654
655 def test_name_mapping(self):
656 for (module3, name3), (module2, name2) in REVERSE_NAME_MAPPING.items():

Callers

nothing calls this directly

Calls 5

assertInMethod · 0.80
getmoduleFunction · 0.70
itemsMethod · 0.45
subTestMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected