def METHOD_NAME(self, tmpdir):
    tmpfile = tmpdir.join("tmpfile")
    with open(tmpfile, "w") as tfile:
        tfile.write(mapping_content)
    mapping = MappingAddon(tmpfile)
    f = tflow.tflow(resp=tutils.tresp())
    test_content = b"<title> Test </title>"
    f.response.content = test_content
    f.request.url = url
    mapping.response(f)
    assert f.response.content == test_content