def test_colorize_backticks():
    """Makes sure we colorize backticks correctly."""
    color_config = config.ColorConfig(
        _BLACK,
        _MAGENTA,
        _YELLOW,
        'B',
        _GREEN,
        '',
        '',
        '',
        'res',
        ''
    )

    clean = get_clean_find_file()

    raw_file = get_raw_find_test_file()
    target = get_data_with_subs(
        raw_file,
        backticks=color_config.backticks,
        backticks_reset=color_config.backticks_reset,
    )

    colorizer = color.EgColorizer(color_config)

    actual = colorizer.colorize_backticks(clean)
    assert actual == target
Makes sure we colorize backticks correctly.
test/color_test.py