def METHOD_NAME(self):
    url = "file://%(curdir)s/%(datadir)s/file.txt" % self.get_attrs()
    nurl = self.norm(url)
    resultlines = [
        "url %s" % url,
        "cache key %s" % nurl,
        "real url %s" % nurl,
        "valid",
    ]
    self.direct(url, resultlines)