Mercurial > p > roundup > code
diff test/test_dates.py @ 1535:26f29449c494
fixed detection of bad date specs [SF#691439]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 19 Mar 2003 03:25:30 +0000 |
| parents | c101d2ff5a20 |
| children | 0e36c9b23aa6 |
line wrap: on
line diff
--- a/test/test_dates.py Wed Mar 19 02:50:40 2003 +0000 +++ b/test/test_dates.py Wed Mar 19 03:25:30 2003 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_dates.py,v 1.20 2003-03-10 00:22:21 richard Exp $ +# $Id: test_dates.py,v 1.21 2003-03-19 03:25:30 richard Exp $ import unittest, time @@ -53,6 +53,9 @@ date = Date("8:47:11") ae(str(date), '%s-%02d-%02d.08:47:11'%(y, m, d)) + def testDateError(self): + self.assertRaises(ValueError, Date, "12") + def testOffset(self): ae = self.assertEqual date = Date("2000-04-17", -5)
