diff test/test_dates.py @ 602:c242455d9b46 config-0-4-0-branch

Brought the config branch up to date with HEAD
author Richard Jones <richard@users.sourceforge.net>
date Wed, 06 Feb 2002 04:05:55 +0000
parents 49748e59852a
children
line wrap: on
line diff
--- a/test/test_dates.py	Wed Feb 06 03:47:17 2002 +0000
+++ b/test/test_dates.py	Wed Feb 06 04:05:55 2002 +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.7 2001-08-13 23:01:53 richard Exp $ 
+# $Id: test_dates.py,v 1.7.2.1 2002-02-06 04:05:55 richard Exp $ 
 
 import unittest, time
 
@@ -35,6 +35,10 @@
         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,13 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.8  2002/01/16 07:02:57  richard
+#  . lots of date/interval related changes:
+#    - more relaxed date format for input
+#
+# 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
 #

Roundup Issue Tracker: http://roundup-tracker.org/