def test_colorize_block_indents():
    """Makes sure we colorize block indents correctly."""
    color_config = config.ColorConfig(
        _BLACK,
        _MAGENTA,
        'C',
        _YELLOW,
        'P',
        '',
        '',
        'res',
        '',
        'res'
    )

    clean = get_clean_find_file()

    raw_file = get_raw_find_test_file()
    target = get_data_with_subs(
        raw_file,
        code=color_config.code,
        code_reset=color_config.code_reset,
        prompt=color_config.prompt,
        prompt_reset=color_config.prompt_reset
    )

    colorizer = color.EgColorizer(color_config)

    actual = colorizer.colorize_block_indent(clean)
    assert actual == target
Makes sure we colorize block indents correctly.
test/color_test.py