projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[vevo] Correct test value
[youtube-dl]
/
test
/
test_utils.py
diff --git
a/test/test_utils.py
b/test/test_utils.py
index 4e3c37fb4c7e3a762ad2f049db6fdf1297145824..7ee74e36c09dd17c23d67e2f96a509cfcd816d1c 100644
(file)
--- a/
test/test_utils.py
+++ b/
test/test_utils.py
@@
-33,6
+33,7
@@
from youtube_dl.utils import (
unified_strdate,
unsmuggle_url,
url_basename,
unified_strdate,
unsmuggle_url,
url_basename,
+ urlencode_postdata,
xpath_with_ns,
)
xpath_with_ns,
)
@@
-261,5
+262,9
@@
class TestUtil(unittest.TestCase):
bam''')
self.assertEqual(read_batch_urls(f), [u'foo', u'bar', u'baz', u'bam'])
bam''')
self.assertEqual(read_batch_urls(f), [u'foo', u'bar', u'baz', u'bam'])
+ def test_urlencode_postdata(self):
+ data = urlencode_postdata({'username': 'foo@bar.com', 'password': '1234'})
+ self.assertTrue(isinstance(data, bytes))
+
if __name__ == '__main__':
unittest.main()
if __name__ == '__main__':
unittest.main()