def METHOD_NAME(self, tmpdir):
    tmpfile = tmpdir.join("tmpfile")
    with open(tmpfile, "w") as tfile:
        tfile.write(mapping_content)
    mapping = MappingAddon(tmpfile)
    loader = MagicMock()
    mapping.load(loader)
    assert "mapping_file" in str(loader.add_option.call_args_list)
    assert "map_persistent" in str(loader.add_option.call_args_list)