From 2ae9e9b51251c2188c3e851b98f786cd68701d3f Mon Sep 17 00:00:00 2001 From: Michael Twomey Date: Fri, 18 Oct 2013 11:05:25 +0100 Subject: Added testcase from https://code.google.com/p/pyiso8601/issues/detail?id=17 --- iso8601/test_iso8601.py | 1 + 1 file changed, 1 insertion(+) diff --git a/iso8601/test_iso8601.py b/iso8601/test_iso8601.py index 17e1a21..86f0d16 100644 --- a/iso8601/test_iso8601.py +++ b/iso8601/test_iso8601.py @@ -59,6 +59,7 @@ def test_parse_invalid_date(invalid_date): ("2012-12-19T23:21:28.512400+00:00", datetime.datetime(2012, 12, 19, 23, 21, 28, 512400, iso8601.FixedOffset(0, 0, "+00:00"))), # https://code.google.com/p/pyiso8601/issues/detail?id=21 ("2006-10-20T15:34:56.123+0230", datetime.datetime(2006, 10, 20, 15, 34, 56, 123000, iso8601.FixedOffset(2, 30, "+02:30"))), # https://code.google.com/p/pyiso8601/issues/detail?id=18 ("19950204", datetime.datetime(1995, 2, 4, tzinfo=iso8601.UTC)), # https://code.google.com/p/pyiso8601/issues/detail?id=1 + ("2010-07-20 15:25:52.520701+00:00", datetime.datetime(2010, 7, 20, 15, 25, 52, 520701, iso8601.FixedOffset(0, 0, "+00:00"))), # https://code.google.com/p/pyiso8601/issues/detail?id=17 ]) def test_parse_valid_date(valid_date, expected_datetime): parsed = iso8601.parse_date(valid_date) -- cgit v1.2.1