'Test file handling when closing with an exit status == 0.'

def test_ok(self, editor):

    editor.edit('')
    filename = editor._file.name
    assert os.path.exists(filename)
    assert os.path.basename(filename).startswith('qutebrowser-editor-')
    editor._proc.finished.emit(0, QProcess.NormalExit)
    assert (not os.path.exists(filename))
