def METHOD_NAME(self):
    foo_tarball = asset.Asset(
        self.assetname,
        asset_hash=self.assethash,
        algorithm="sha1",
        locations=[self.url],
        cache_dirs=[self.cache_dir],
        expire=None,
    ).fetch()
    with open(foo_tarball, "r", encoding="utf-8") as f:
        content1 = f.read()
    # Create the file in a different location with a different content
    new_assetdir = tempfile.mkdtemp(dir=self.tmpdir.name)
    new_localpath = os.path.join(new_assetdir, self.assetname)
    new_hash = "9f1ad57044be4799f288222dc91d5eab152921e9"
    new_url = f"file://{new_localpath}"
    with open(new_localpath, "w", encoding="utf-8") as f:
        f.write("Changed!")
    # Don't expire cached file
    foo_tarball = asset.Asset(
        self.assetname,
        asset_hash=self.assethash,
        algorithm="sha1",
        locations=[new_url],
        cache_dirs=[self.cache_dir],
        expire=None,
    ).fetch()
    with open(foo_tarball, "r", encoding="utf-8") as f:
        content2 = f.read()
    self.assertEqual(content1, content2)
    # Expire cached file
    foo_tarball = asset.Asset(
        self.assetname,
        asset_hash=new_hash,
        algorithm="sha1",
        locations=[new_url],
        cache_dirs=[self.cache_dir],
        expire=-1,
    ).fetch()
    with open(foo_tarball, "r", encoding="utf-8") as f:
        content2 = f.read()
    self.assertNotEqual(content1, content2)