summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2016-08-18 23:32:00 +0700
committerSergey M․ <[email protected]>2016-08-18 23:32:00 +0700
commit13585d7682ef6351bfcd463cf1802bc8fbadaf43 (patch)
tree93b5e4379fe7c5e17aadcfde3da679a303396aeb /test
parentfd3ec986a4217319d0cc345c5e2eb910d90be6f8 (diff)
downloadyoutube-dl-13585d7682ef6351bfcd463cf1802bc8fbadaf43.tar.gz
youtube-dl-13585d7682ef6351bfcd463cf1802bc8fbadaf43.zip
[utils] Recognize lowercase units in parse_filesize
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 74fcf91c0..cb578cd53 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -817,7 +817,9 @@ class TestUtil(unittest.TestCase):
self.assertEqual(parse_filesize('2 MiB'), 2097152)
self.assertEqual(parse_filesize('5 GB'), 5000000000)
self.assertEqual(parse_filesize('1.2Tb'), 1200000000000)
+ self.assertEqual(parse_filesize('1.2tb'), 1200000000000)
self.assertEqual(parse_filesize('1,24 KB'), 1240)
+ self.assertEqual(parse_filesize('1,24 kb'), 1240)
def test_parse_count(self):
self.assertEqual(parse_count(None), None)