def METHOD_NAME(self) -> Iterator[Any]:
    with self.assertRaises(exceptions.DownloadLengthMismatchError):
        # Force download_file to execute and raise the error since it is a
        # context manager and returns Iterator[IO]
        yield self.fetcher.download_file(self.url, self.file_length - 4)