def tasks(tmpdir):
    """
    Set up a project with some tasks that we can test displaying
    """
    task_l = [
        "",
        " ^ this is the first task (released)",
        "   and it has a second line",
        " > this is the second task (committed)",
        " . this is the third task (changed, not yet committed)",
        " - this is the fourth task (not yet made)",
        "   and this one has a second line also",
        " + fifth task -- completed",
        " < sixth task -- moved elsewhere",
        " x seventh task -- abandoned",
        "",
    ]
    # project dir
    prjdir = tmpdir.join("myproj")

    # .project file
    prjdir.join(".project").ensure()

    # DODO file with content
    dodo = prjdir.join("DODO")
    dodo.write("\n".join(task_l) + "\n")

    data = {
        'tmpdir': tmpdir,
        'prj': prjdir,
        'dodo': dodo,
    }
    return data