1
0
mirror of https://code.hackerspace.pl/q3k/youtube-dl synced 2025-03-16 11:43:02 +00:00
youtube-dl/test/test_download.py

216 lines
8.1 KiB
Python
Raw Normal View History

#!/usr/bin/env python
# Allow direct execution
import os
import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from test.helper import (
assertGreaterEqual,
get_params,
gettestcases,
expect_info_dict,
try_rm,
report_warning,
)
2012-09-28 15:34:56 +02:00
import hashlib
import io
2012-10-15 13:01:36 +02:00
import json
import socket
2012-11-28 15:09:56 +01:00
import youtube_dl.YoutubeDL
from youtube_dl.utils import (
compat_http_client,
compat_urllib_error,
compat_HTTPError,
DownloadError,
ExtractorError,
format_bytes,