diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-28 21:40:22 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-28 21:40:22 +0600 |
commit | 52c3a6e49d2cbc1932992d816d28bbed629daadc (patch) | |
tree | a30e8575f221be621f8cd628b901c23055c8c9cf /test | |
parent | 4e16c1f80b009001aaea6f8baca5dfbfa9b58c11 (diff) |
[utils] Improve parse_iso8601
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 918a7a9ef..0c34f0e55 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -425,6 +425,8 @@ class TestUtil(unittest.TestCase): self.assertEqual(parse_iso8601('2014-03-23T22:04:26+0000'), 1395612266) self.assertEqual(parse_iso8601('2014-03-23T22:04:26Z'), 1395612266) self.assertEqual(parse_iso8601('2014-03-23T22:04:26.1234Z'), 1395612266) + self.assertEqual(parse_iso8601('2015-09-29T08:27:31.727'), 1443515251) + self.assertEqual(parse_iso8601('2015-09-29T08-27-31.727'), None) def test_strip_jsonp(self): stripped = strip_jsonp('cb ([ {"id":"532cb",\n\n\n"x":\n3}\n]\n);') |