def METHOD_NAME(file, tmp_path):
    """
    Text to append includes a percent symbol
    """
    # let's make use of existing state to create a file with contents to
    # test against
    tmp_file_append = tmp_path / "test.append"
    tmp_file_append.write_text(FIRST_IF_CONTENTS + SECOND_IF_CONTENTS)
    ret = file.append(name=str(tmp_file_append), text="HISTTIMEFORMAT='%F %T '")
    assert ret.result is True
    contents_pre = tmp_file_append.read_text()
    # It should not append text again
    ret = file.append(name=str(tmp_file_append), text="HISTTIMEFORMAT='%F %T '")
    assert ret.result is True
    contents_post = tmp_file_append.read_text()
    assert contents_pre == contents_post