aboutsummaryrefslogtreecommitdiff
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-02-15 16:24:43 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-02-15 16:24:43 +0100
commitb53466e1680db3d710415329674c887d38af46c5 (patch)
tree46bed830eda044afc7189de92aeb41aa88b227ea /test/test_utils.py
parent6a7a38967976ea0d0b911c2965aaa74bed2976d7 (diff)
downloadyoutube-dl-b53466e1680db3d710415329674c887d38af46c5.tar.xz
Fix f4m downloading on Python 2.6
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 97c408ebf..1ca5f5af8 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -25,6 +25,7 @@ from youtube_dl.utils import (
shell_quote,
smuggle_url,
str_to_int,
+ struct_unpack,
timeconvert,
unescapeHTML,
unified_strdate,
@@ -237,5 +238,8 @@ class TestUtil(unittest.TestCase):
testPL(5, 2, (2, 99), [2, 3, 4])
testPL(5, 2, (20, 99), [])
+ def test_struct_unpack(self):
+ self.assertEqual(struct_unpack(u'!B', b'\x00'), (0,))
+
if __name__ == '__main__':
unittest.main()