aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-08-14 04:51:54 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-08-14 05:12:32 +0530
commit8f53dc44a0cc1c2d98c35740b9293462c080f5d0 (patch)
treeddc64192482cd2af381524415a20a3165e110857 /test/test_utils.py
parent1cddfdc52b39f6760a70869632d12577b080b69c (diff)
downloadhypervideo-pre-8f53dc44a0cc1c2d98c35740b9293462c080f5d0.tar.lz
hypervideo-pre-8f53dc44a0cc1c2d98c35740b9293462c080f5d0.tar.xz
hypervideo-pre-8f53dc44a0cc1c2d98c35740b9293462c080f5d0.zip
[jsinterp] Handle new youtube signature functions
Closes #4635
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 659b071d3..67cd966d8 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -413,6 +413,10 @@ class TestUtil(unittest.TestCase):
self.assertEqual(unified_timestamp('December 15, 2017 at 7:49 am'), 1513324140)
self.assertEqual(unified_timestamp('2018-03-14T08:32:43.1493874+00:00'), 1521016363)
+ self.assertEqual(unified_timestamp('December 31 1969 20:00:01 EDT'), 1)
+ self.assertEqual(unified_timestamp('Wednesday 31 December 1969 18:01:26 MDT'), 86)
+ self.assertEqual(unified_timestamp('12/31/1969 20:01:18 EDT', False), 78)
+
def test_determine_ext(self):
self.assertEqual(determine_ext('http://example.com/foo/bar.mp4/?download'), 'mp4')
self.assertEqual(determine_ext('http://example.com/foo/bar/?download', None), None)