Commit b2a42f85 authored by Tres Seaver's avatar Tres Seaver

Wrap long lines.

parent 552c6d3e
......@@ -336,10 +336,12 @@ class DateTimeTests(unittest.TestCase):
try: d_us = DateTime("%d/%d/%d" % (year,month,day))
except: continue
d_int = DateTime("%d.%d.%d" % (day,month,year), datefmt="international")
d_int = DateTime("%d.%d.%d" % (day,month,year),
datefmt="international")
self.assertEqual(d_us, d_int)
d_int = DateTime("%d/%d/%d" % (day,month,year), datefmt="international")
d_int = DateTime("%d/%d/%d" % (day,month,year),
datefmt="international")
self.assertEqual(d_us, d_int)
def test_calcTimezoneName(self):
......@@ -371,7 +373,8 @@ class DateTimeTests(unittest.TestCase):
'''Checks time zone in dates <= 1900 or >= 2038'''
dt1 = DateTime('2040/01/30 14:33 GMT+1')
dt2 = DateTime('2040/01/30 11:33 GMT-2')
self.assertEqual(dt1.strftime('%d/%m/%Y %H:%M'), dt2.strftime('%d/%m/%Y %H:%M'))
self.assertEqual(dt1.strftime('%d/%m/%Y %H:%M'),
dt2.strftime('%d/%m/%Y %H:%M'))
def testStrftimeUnicode(self):
dt = DateTime('2002-05-02T08:00:00+00:00')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment