MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_import_mapping

Method test_import_mapping

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

Source from the content-addressed store, hash-verified

712 pass
713
714 def test_import_mapping(self):
715 for module3, module2 in REVERSE_IMPORT_MAPPING.items():
716 with self.subTest((module3, module2)):
717 try:
718 getmodule(module3)
719 except ImportError:
720 pass
721 if module3[:1] != '_':
722 self.assertIn(module2, IMPORT_MAPPING)
723 self.assertEqual(IMPORT_MAPPING[module2], module3)
724
725 def test_name_mapping(self):
726 for (module3, name3), (module2, name2) in REVERSE_NAME_MAPPING.items():

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected