def test_colorize_heading():
    """Makes sure we colorize things like '# find' correctly"""
    color_config = config.ColorConfig(
        'P',
        'H',
        _YELLOW,
        _MAGENTA,
        _BLACK,
        'RES',
        'RES',
        '',
        '',
        ''
    )

    clean = get_clean_find_file()

    raw_file = get_raw_find_test_file()
    target = get_data_with_subs(
        raw_file,
        pound=color_config.pound,
        pound_reset=color_config.pound_reset,
        heading=color_config.heading,
        heading_reset=color_config.heading_reset
    )

    colorizer = color.EgColorizer(color_config)

    actual = colorizer.colorize_heading(clean)
    assert actual == target
Makes sure we colorize things like '# find' correctly
test/color_test.py