assert filename match

This commit is contained in:
Henning Peters 2015-10-20 19:33:59 +02:00
parent 4f703f0cb4
commit da4c9cee06
1 changed files with 4 additions and 2 deletions

View File

@ -28,8 +28,10 @@ def install_data(url, path, filename):
except FileExistsError:
pass
filename = download_file(url, os.path.join(path, filename))
t = tarfile.open(filename)
download_path = os.path.join(path, filename)
tmp = download_file(url, download_path)
assert tmp == download_path
t = tarfile.open(download_path)
t.extractall(path)