def METHOD_NAME(self, tmpdir: Path, data: TestData) -> None:
    """
    Test when the file url hash fragment is wrong
    """
    self.prep(tmpdir, data)
    url = f"{self.dist_url.url}#md5=bogus"
    dist_url = Link(url)
    with pytest.raises(HashMismatch):
        unpack_url(
            dist_url,
            self.build_dir,
            download=self.no_download,
            hashes=Hashes({"md5": ["bogus"]}),
            verbosity=0,
        )