aboutsummaryrefslogtreecommitdiff
path: root/test/test_youtube_sig.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-07-11 23:47:54 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-07-11 23:47:54 +0200
commit606d7e67fda22217b0a5c79f2a3a222d98291c3d (patch)
treed59c7dcebd90f8b09f51848c4df4c43d14895809 /test/test_youtube_sig.py
parentfd87ff26b9e6802b10ba5bfa298c3673978bc091 (diff)
YoutubeIE: add algo for length 81 (closes #1026)
Diffstat (limited to 'test/test_youtube_sig.py')
-rwxr-xr-xtest/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 fe2067bbd..bbeb3e2fb 100755
--- a/test/test_youtube_sig.py
+++ b/test/test_youtube_sig.py
@@ -53,5 +53,10 @@ class TestYoutubeSig(unittest.TestCase):
right = "Q>/?;}[{=+-(*<^%$#@!MNBVCXZASDFGHKLPOIUY8REWT0q&7654321mnbvcxzasdfghjklpoiuytrew9"
self.assertEqual(sig(wrong), right)
+ def test_81(self):
+ wrong = "qwertyuioplkjhgfdsazxcvbnm1234567890QWERTYUIOPLKHGFDSAZXCVBNM!@#$%^&*(-+={[};?/>."
+ right = "urty8ioplkjhgfdsazxcvbqm1234567e90QWERTYUIOPLKHGFDSnZXCVBNM!@#$%^&*(-+={[};?/>."
+ self.assertEqual(sig(wrong), right)
+
if __name__ == '__main__':
unittest.main()