Code

. lots of date/interval related changes:
[roundup.git] / test / test_dates.py
index 42cf18b2501720b82b40c14c2cb92afc4705af0f..624b3124786123501829a35e48301c8b17183b23 100644 (file)
@@ -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.7 2001-08-13 23:01:53 richard Exp $ 
+# $Id: test_dates.py,v 1.8 2002-01-16 07:02:57 richard Exp $ 
 
 import unittest, time
 
@@ -35,6 +35,10 @@ class DateTestCase(unittest.TestCase):
         ae = self.assertEqual
         date = Date("2000-04-17")
         ae(str(date), '2000-04-17.00:00:00')
+        date = Date("2000-4-7")
+        ae(str(date), '2000-04-07.00:00:00')
+        date = Date("2000-4-17")
+        ae(str(date), '2000-04-17.00:00:00')
         date = Date("01-25")
         y, m, d, x, x, x, x, x, x = time.gmtime(time.time())
         ae(str(date), '%s-01-25.00:00:00'%y)
@@ -83,6 +87,9 @@ def suite():
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.7  2001/08/13 23:01:53  richard
+# fixed a 2.1-ism
+#
 # Revision 1.6  2001/08/07 00:24:43  richard
 # stupid typo
 #