[Zope-Checkins] CVS: Zope/lib/python/DateTime/tests - testDateTime.py:1.4.24.2

Jim Fulton jim@zope.com
Sat, 12 Jan 2002 14:37:27 -0500


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

Modified Files:
      Tag: Zope-2_5-branch
	testDateTime.py 
Log Message:
The DateTime module was changed to no longer import the string module, 
but one of the uses of string.atoi wasn't fixed.  There also wasn't a
test for this. :(



=== Zope/lib/python/DateTime/tests/testDateTime.py 1.4.24.1 => 1.4.24.2 ===
         assert ddays == 3000000L, ddays
 
+    def test_tzoffset(self):
+        '''Test time-zone given as an offset
+        '''
+        dt = DateTime('Tue, 24 Jul 2001 09:41:03 -0400')
+        # XXX We are only testing that this works, to exercise
+        # a recent bug, however, we also need to test the value, which is, uh,
+        # controversal.
 
 def test_suite():
     return unittest.makeSuite(DateTimeTests)