1.1 --- a/tests/test_dates.py Tue May 07 19:49:26 2013 +0200
1.2 +++ b/tests/test_dates.py Tue May 07 23:16:40 2013 +0200
1.3 @@ -7,8 +7,12 @@
1.4 ts1 = Timespan(d1, d1)
1.5 ts2 = Timespan(d1, d2)
1.6
1.7 -print "d1:", d1, d1.as_ISO8601_datetime_string()
1.8 -print "d2:", d2, d2.as_ISO8601_datetime_string()
1.9 +d1_roundtrip = getDateTimeFromISO8601(d1.as_ISO8601_datetime_string())
1.10 +d2_roundtrip = getDateTimeFromISO8601(d2.as_ISO8601_datetime_string())
1.11 +
1.12 +# expected result operands
1.13 +print "%r : %r <- %r == %r" % (d1 == d1_roundtrip, d1 == d1_roundtrip, d1, d1_roundtrip)
1.14 +print "%r : %r <- %r == %r" % (d2 == d2_roundtrip, d2 == d2_roundtrip, d2, d2_roundtrip)
1.15
1.16 # expected result operands
1.17 print "%r : %r <- %r < %r" % (d1 < d2, d1 < d2, d1, d2)