[Zope-Checkins] SVN: Zope/trunk/lib/python/DateTime/tests/testDateTime.py add test not merged from 2.7 branch

Brian Lloyd brian at zope.com
Wed Mar 16 09:27:56 EST 2005


Log message for revision 29495:
  add test not merged from 2.7 branch

Changed:
  U   Zope/trunk/lib/python/DateTime/tests/testDateTime.py

-=-
Modified: Zope/trunk/lib/python/DateTime/tests/testDateTime.py
===================================================================
--- Zope/trunk/lib/python/DateTime/tests/testDateTime.py	2005-03-16 14:11:04 UTC (rev 29494)
+++ Zope/trunk/lib/python/DateTime/tests/testDateTime.py	2005-03-16 14:27:56 UTC (rev 29495)
@@ -293,6 +293,12 @@
             result_from_mx=tuple(map(int, line[12:-2].split(',')))
             self.assertEqual(result_from_mx[1], d.week())
 
+    def testCopyConstructor(self):
+        d = DateTime('2004/04/04')
+        self.assertEqual(DateTime(d), d)
+        d = DateTime('1999/04/12')
+        self.assertEqual(DateTime(d), d)
+
     def testRFC822(self):
         '''rfc822 conversion'''
         dt = DateTime('2002-05-02T08:00:00+00:00')



More information about the Zope-Checkins mailing list