def METHOD_NAME(self):
    """Tests get_file from a url, plus extraction and validation."""
    dest_dir = self.get_temp_dir()
    orig_dir = dest_dir
    text_file_path = os.path.join(orig_dir, "test.txt")
    tar_file_path = os.path.join(orig_dir, "test.tar.gz")
    with open(text_file_path, "w") as text_file:
        text_file.write("Float like a butterfly, sting like a bee.")
    with tarfile.open(tar_file_path, "w:gz") as tar_file:
        tar_file.add(text_file_path)
    origin = urllib.parse.urljoin(
        "file://",
        urllib.request.pathname2url(os.path.abspath(tar_file_path)),
    )
    path = file_utils.get_file(
        "test.txt.tar.gz", origin, untar=True, cache_subdir=dest_dir
    )
    self.assertTrue(path.endswith(".txt"))
    self.assertTrue(os.path.exists(path))