[test/youtube_signature] Add a test with the last player
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 4 Feb 2014 20:56:17 +0000 (21:56 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 4 Feb 2014 20:56:17 +0000 (21:56 +0100)
To verify it correctly handles function with “$” in their names.

test/test_youtube_signature.py

index a3fc53047de031c8c8e01046b53a891ef6b693a8..8417c55a6d50059c3612e97f05511be90f606f56 100644 (file)
@@ -27,6 +27,12 @@ _TESTS = [
         85,
         u'3456789a0cdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRS[UVWXYZ!"#$%&\'()*+,-./:;<=>?@',
     ),
+    (
+        u'https://s.ytimg.com/yts/jsbin/html5player-vfle-mVwz.js',
+        u'js',
+        90,
+        u']\\[@?>=<;:/.-,+*)(\'&%$#"hZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjiagfedcb39876',
+    ),
 ]