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

Method test_alias_modules_exist

Lib/test/test_codecs.py:3113–3118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3111 self.assertEqual(info.name, expected_name)
3112
3113 def test_alias_modules_exist(self):
3114 encodings_dir = os.path.dirname(encodings.__file__)
3115 for value in encodings.aliases.aliases.values():
3116 codec_mod = f"encodings.{value}"
3117 self.assertIsNotNone(importlib.util.find_spec(codec_mod),
3118 f"Codec module not found: {codec_mod}")
3119
3120 def test_quopri_stateless(self):
3121 # Should encode with quotetabs=True

Callers

nothing calls this directly

Calls 4

assertIsNotNoneMethod · 0.80
dirnameMethod · 0.45
valuesMethod · 0.45
find_specMethod · 0.45

Tested by

no test coverage detected