|
|
@ -340,6 +340,8 @@ class TestUtil(unittest.TestCase): |
|
|
|
self.assertEqual(unified_strdate('July 15th, 2013'), '20130715') |
|
|
|
self.assertEqual(unified_strdate('September 1st, 2013'), '20130901') |
|
|
|
self.assertEqual(unified_strdate('Sep 2nd, 2013'), '20130902') |
|
|
|
self.assertEqual(unified_strdate('November 3rd, 2019'), '20191103') |
|
|
|
self.assertEqual(unified_strdate('October 23rd, 2005'), '20051023') |
|
|
|
|
|
|
|
def test_unified_timestamps(self): |
|
|
|
self.assertEqual(unified_timestamp('December 21, 2010'), 1292889600) |
|
|
|