def METHOD_NAME(asdf_file):
    result = asdf_file.search("missing")
    assert len(result.nodes) == 0
    assert "No results found." in repr(result)
    assert result.node is None
    assert result.path is None
    # Testing no exceptions here:
    result.replace("foo")