def _module_name_to_class_name(module_name):
    """Converts the given name of a module containing a tool test settings
    class into a class name.
    """
    # Settings for some of our tools have to be treated specially because the
    # generic conversion below is inadequate.
    if module_name == 'idaplugin_test_settings':
        return 'IDAPluginTestSettings'
    elif module_name == 'r2plugin_test_settings':
        return 'R2PluginTestSettings'
    elif module_name == 'bin2pat_test_settings':
        return 'Bin2PatTestSettings'

    # Generic conversion. For example, 'tool_test_settings' is converted to
    # 'ToolTestSettings'.
    return ''.join(part.title() for part in module_name.split('_'))