def METHOD_NAME(file, tmp_path, test):
    """
    file.append
    """
    name = tmp_path / "testfile"
    name.write_text("#salty!")
    ret = file.append(name=str(name), text="cheese", test=test)
    if test is True:
        assert ret.result is None
        assert name.read_text() == "#salty!"
    else:
        assert ret.result is True
        assert name.read_text() == "#salty!\ncheese\n"