def METHOD_NAME(self, tmp_path):
    import os
    from rule_ctl import write_output
    file_path = str(tmp_path / 'foo.conf')
    arguments = [
        "--append-tag", "foo",
        "--target-file", file_path
    ]
    rule_string = """