diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-01-12 22:39:45 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-01-12 22:39:45 +0700 |
commit | cb655f34fbbd741f18e22cb8ec0cae1c4c3bfebe (patch) | |
tree | 563fb88ff95185c0015c62c222cd566a2d695356 /test | |
parent | ed06da4e7b274fd444a6ada23ba9bb4c559761d3 (diff) |
[utils] Add more date formats
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 3092db5c1..e99bf794e 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -295,6 +295,9 @@ class TestUtil(unittest.TestCase): self.assertEqual(unified_strdate('27.02.2016 17:30'), '20160227') self.assertEqual(unified_strdate('UNKNOWN DATE FORMAT'), None) self.assertEqual(unified_strdate('Feb 7, 2016 at 6:35 pm'), '20160207') + self.assertEqual(unified_strdate('July 15th, 2013'), '20130715') + self.assertEqual(unified_strdate('September 1st, 2013'), '20130901') + self.assertEqual(unified_strdate('Sep 2nd, 2013'), '20130902') def test_unified_timestamps(self): self.assertEqual(unified_timestamp('December 21, 2010'), 1292889600) |