def METHOD_NAME(self):
    # Looking up a pretty name should find the mangled class.
    self.assertIs(_MangledName.module_getattr(
        module_name=__name__,
        module_globals=globals(),
        name="Template[float]"), TemplateOnFloat)
    # Unknown names raise the conventional error.
    message = "module 'cpp_param_test' has no attribute 'NoSuchClass'"
    with self.assertRaisesRegex(AttributeError, message):
        _MangledName.module_getattr(
            module_name=__name__,
            module_globals=globals(),
            name="NoSuchClass")