Mercurial > p > roundup > code
diff test/test_dates.py @ 3586:f47bddab5a49
date spec wasn't allowing week intervals
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 03 Mar 2006 02:02:50 +0000 |
| parents | 9c080e19f307 |
| children | a9126b8033c5 |
line wrap: on
line diff
--- a/test/test_dates.py Fri Mar 03 01:02:26 2006 +0000 +++ b/test/test_dates.py Fri Mar 03 02:02:50 2006 +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.37 2006-01-13 00:22:17 richard Exp $ +# $Id: test_dates.py,v 1.38 2006-03-03 02:02:50 richard Exp $ from __future__ import nested_scopes import unittest, time @@ -84,6 +84,12 @@ date = Date("8:47:11", -5) ae(str(date), '%s-%02d-%02d.13:47:11'%(y, m, d)) + # just make sure we parse these, m'kay? + date = Date('-1d') + date = Date('-1w') + date = Date('-1m') + date = Date('-1y') + def testOffsetRandom(self): ae = self.assertEqual # XXX unsure of the usefulness of these, they're pretty random
