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

Method test_alias_modules_exist

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

Source from the content-addressed store, hash-verified

3122 self.assertEqual(info.name, expected_name)
3123
3124 def test_alias_modules_exist(self):
3125 encodings_dir = os.path.dirname(encodings.__file__)
3126 for value in encodings.aliases.aliases.values():
3127 codec_mod = f"encodings.{value}"
3128 self.assertIsNotNone(importlib.util.find_spec(codec_mod),
3129 f"Codec module not found: {codec_mod}")
3130
3131 def test_quopri_stateless(self):
3132 # Should encode with quotetabs=True

Callers

nothing calls this directly

Calls 3

assertIsNotNoneMethod · 0.80
valuesMethod · 0.45
find_specMethod · 0.45

Tested by

no test coverage detected