[Zope-Checkins] CVS: Packages/DateTime/tests - testDateTime.py:1.21.12.5

Andreas Jung andreas at andreas-jung.com
Mon Aug 2 05:49:19 EDT 2004


Update of /cvs-repository/Packages/DateTime/tests
In directory cvs.zope.org:/tmp/cvs-serv12205/lib/python/DateTime/tests

Modified Files:
      Tag: Zope-2_7-branch
	testDateTime.py 
Log Message:
backported copy constructor from trunk


=== Packages/DateTime/tests/testDateTime.py 1.21.12.4 => 1.21.12.5 ===
--- Packages/DateTime/tests/testDateTime.py:1.21.12.4	Fri Jun 25 11:43:06 2004
+++ Packages/DateTime/tests/testDateTime.py	Mon Aug  2 05:49:18 2004
@@ -288,6 +288,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