aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-07-25 22:50:24 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-07-25 22:50:24 +0200
commit5c468ca8a852a00a55b4559d31f5e9861e76d748 (patch)
tree8f5f901b08cf2d438f3479fcc211c8c3b616f874 /test
parentaedd6bb97de7ed82da746892e2a0b32ee9c6d6b8 (diff)
YoutubeIE: add algo for length 79 (fixes #1126)
Diffstat (limited to 'test')
-rw-r--r--test/test_youtube_sig.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_youtube_sig.py b/test/test_youtube_sig.py
index 4e50d6f90..4d45a0e08 100644
--- a/test/test_youtube_sig.py
+++ b/test/test_youtube_sig.py
@@ -63,5 +63,10 @@ class TestYoutubeSig(unittest.TestCase):
right = "C>/?;}[{=+-(*&^%$#@!MNBVYXZASDFGHKLPOIU.TREWQ0q87659321mnbvcxzasdfghjkl4oiuytrewp"
self.assertEqual(sig(wrong), right)
+ def test_79(self):
+ wrong = "qwertyuioplkjhgfdsazxcvbnm1234567890QWERTYUIOPLKHGFDSAZXCVBNM!@#$%^&*(-+={[};?/"
+ right = "Z?;}[{=+-(*&^%$#@!MNBVCXRASDFGHKLPOIUYT/EWQ0q87659321mnbvcxzasdfghjkl4oiuytrewp"
+ self.assertEqual(sig(wrong), right)
+
if __name__ == '__main__':
unittest.main()