summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-07-25 07:00:54 +0200
committerPhilipp Hagemeister <[email protected]>2014-07-25 07:00:54 +0200
commit4bc7009e8a6aed2b61866ef12ca3d60065ebcd0e (patch)
treea2f720b1a49ea14d7dfcb52637210dd22187b3f9 /test
parent16f8e9df8a414a182ddd5870a4c98a4725e911cf (diff)
downloadyoutube-dl-4bc7009e8a6aed2b61866ef12ca3d60065ebcd0e.tar.gz
youtube-dl-4bc7009e8a6aed2b61866ef12ca3d60065ebcd0e.zip
[jsinterp] Add new testcase
Diffstat (limited to 'test')
-rw-r--r--test/test_youtube_signature.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.py
index 811d3a93e..604e76ab6 100644
--- a/test/test_youtube_signature.py
+++ b/test/test_youtube_signature.py
@@ -71,6 +71,12 @@ _TESTS = [
83,
'123456789abcdefghijklmnopqr0tuvwxyzABCDETGHIJKLMNOPQRS>UVWXYZ!"#$%&\'()*+,-./:;<=F'
),
+ (
+ 'https://s.ytimg.com/yts/jsbin/html5player-en_US-vflCGk6yw/html5player.js',
+ 'js',
+ '4646B5181C6C3020DF1D9C7FCFEA.AD80ABF70C39BD369CCCAE780AFBB98FA6B6CB42766249D9488C288',
+ '82C8849D94266724DC6B6AF89BBFA087EACCD963.B93C07FBA084ACAEFCF7C9D1FD0203C6C1815B6B'
+ )
]
@@ -83,7 +89,7 @@ class TestSignature(unittest.TestCase):
def make_tfunc(url, stype, sig_input, expected_sig):
- m = re.match(r'.*-([a-zA-Z0-9_-]+)(?:/watch_as3)?\.[a-z]+$', url)
+ m = re.match(r'.*-([a-zA-Z0-9_-]+)(?:/watch_as3|/html5player)?\.[a-z]+$', url)
assert m, '%r should follow URL format' % url
test_id = m.group(1)