@@ -0,0 +1,1257 @@
+# -*- coding: utf-8 -*-%0A%0A%22%22%22Date utilities test cases.%22%22%22%0A%0Aimport datetime%0Aimport unittest%0A%0Afrom datagrid_gtk3.utils.dateutils import (%0A    InvalidDateFormat,%0A    parse_string,%0A)%0A%0A%0Aclass DateUtilsTest(unittest.TestCase):%0A%0A    %22%22%22Tests for :mod:%60datagrid.utils.dateutils%60.%22%22%22%0A%0A    def test_parse_string_valid(self):%0A        %22%22%22Parse string should generate datetime for valid inputs.%22%22%22%0A        for date_str, date in %5B%0A                ('4/10/2015', datetime.datetime(2015, 4, 10)),%0A                ('4/10/2015 04:20', datetime.datetime(2015, 4, 10, 4, 20)),%0A                ('2-Jun-2013', datetime.datetime(2013, 6, 2)),%0A                ('2-Jun-2013 06:48:15',%0A                 datetime.datetime(2013, 6, 2, 6, 48, 15)),%0A                ('Tue, 10 Apr 2001 15:51:24',%0A                 datetime.datetime(2001, 4, 10, 15, 51, 24))%5D:%0A            self.assertEqual(parse_string(date_str), date)%0A%0A    def test_parse_string_invalid(self):%0A        %22%22%22InvalidDateFormat should be raised for invalid inputs.%22%22%22%0A        for invalid_str in %5B%0A                'non-valid-string',%0A                '10/50/2010',%0A                '50/10/2015',%0A                '10/10/2010 25:10'%5D:%0A            with self.assertRaises(InvalidDateFormat):%0A                parse_string(invalid_str)%0A

Add tests for dateutils.parse_string