summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-03-24 01:40:09 +0100
committerPhilipp Hagemeister <[email protected]>2014-03-24 01:40:09 +0100
commit912b38b428e882c1ab79b6537b94b30e3e3c1def (patch)
treea1ce210e3af2767d3544d0c273437e3968366886 /test
parent51fb2e98d2c8987f52abd57d77afc5c2972d203a (diff)
downloadyoutube-dl-912b38b428e882c1ab79b6537b94b30e3e3c1def.tar.gz
youtube-dl-912b38b428e882c1ab79b6537b94b30e3e3c1def.zip
[instagram] Fix info_dict key name
Diffstat (limited to 'test')
-rw-r--r--test/test_playlists.py2
-rw-r--r--test/test_utils.py6
2 files changed, 8 insertions, 0 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py
index b1e38e7e9..4af38632e 100644
--- a/test/test_playlists.py
+++ b/test/test_playlists.py
@@ -309,6 +309,8 @@ class TestPlaylists(unittest.TestCase):
'thumbnail': 're:^https?://.*\.jpg',
'uploader': 'Porsche',
'uploader_id': 'porsche',
+ 'timestamp': 1387486713,
+ 'upload_date': '20131219',
}
expect_info_dict(self, EXPECTED, test_video)
diff --git a/test/test_utils.py b/test/test_utils.py
index 7ee74e36c..e920d661f 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -35,6 +35,7 @@ from youtube_dl.utils import (
url_basename,
urlencode_postdata,
xpath_with_ns,
+ parse_iso8601,
)
if sys.version_info < (3, 0):
@@ -266,5 +267,10 @@ class TestUtil(unittest.TestCase):
data = urlencode_postdata({'username': '[email protected]', 'password': '1234'})
self.assertTrue(isinstance(data, bytes))
+ def test_parse_iso8601(self):
+ self.assertEqual(parse_iso8601('2014-03-23T23:04:26+0100'), 1395612266)
+ self.assertEqual(parse_iso8601('2014-03-23T22:04:26+0000'), 1395612266)
+ self.assertEqual(parse_iso8601('2014-03-23T22:04:26Z'), 1395612266)
+
if __name__ == '__main__':
unittest.main()