'When we start deleting a path we want to see the subdir.'

def test_backspacing_path(self, qtbot, tmpdir, get_prompt):

    for directory in ['bar', 'foo']:
        (tmpdir / directory).ensure(dir=True)
    prompt = get_prompt((str((tmpdir / 'foo')) + os.sep))
    with qtbot.wait_signal(prompt._file_model.directoryLoaded):
        for _ in range(3):
            qtbot.keyPress(prompt._lineedit, Qt.Key_Backspace)
    prompt.item_focus('next')
    prompt.item_focus('next')
    assert (prompt._lineedit.text() == str((tmpdir / 'bar')))
