[Zope-Checkins] CVS: Packages/DateTime/tests -
testDateTime.py:1.21.12.7
Jens Vagelpohl
jens at dataflake.org
Tue Nov 9 12:49:37 EST 2004
Update of /cvs-repository/Packages/DateTime/tests
In directory cvs.zope.org:/tmp/cvs-serv10859/lib/python/DateTime/tests
Modified Files:
Tag: Zope-2_7-branch
testDateTime.py
Log Message:
- Collector #1569/DateTime: Added a new ISO8601-method that will
return correctly formatted ISO 8601-representations to augment
the ISO method which isn't compliant with ISO 8601.
=== Packages/DateTime/tests/testDateTime.py 1.21.12.6 => 1.21.12.7 ===
--- Packages/DateTime/tests/testDateTime.py:1.21.12.6 Mon Nov 8 13:50:44 2004
+++ Packages/DateTime/tests/testDateTime.py Tue Nov 9 12:49:37 2004
@@ -272,6 +272,10 @@
for tbad in '08:00', 'T8:00': #, 'T08:00Z-04:00':
self.assertRaises(DateTime.SyntaxError, DateTime, dgood + tbad)
+ iso8601_string = '2002-05-02T08:00:00-04:00'
+ iso8601DT = DateTime(iso8601_string)
+ self.assertEqual(iso8601_string, iso8601DT.ISO8601())
+
def testJulianWeek(self):
""" check JulianDayWeek function """
More information about the Zope-Checkins
mailing list