diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2013-07-25 22:50:24 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2013-07-25 22:50:24 +0200 |
commit | 5c468ca8a852a00a55b4559d31f5e9861e76d748 (patch) | |
tree | 8f5f901b08cf2d438f3479fcc211c8c3b616f874 /test | |
parent | aedd6bb97de7ed82da746892e2a0b32ee9c6d6b8 (diff) | |
download | youtube-dl-5c468ca8a852a00a55b4559d31f5e9861e76d748.tar.gz youtube-dl-5c468ca8a852a00a55b4559d31f5e9861e76d748.zip |
YoutubeIE: add algo for length 79 (fixes #1126)
Diffstat (limited to 'test')
-rw-r--r-- | test/test_youtube_sig.py | 5 |
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() |