diff options
author | Michael Twomey <michael.twomey@fieldaware.com> | 2013-10-18 11:05:25 +0100 |
---|---|---|
committer | Michael Twomey <michael.twomey@fieldaware.com> | 2013-10-18 11:05:25 +0100 |
commit | 2ae9e9b51251c2188c3e851b98f786cd68701d3f (patch) | |
tree | c7a8f5b6f16a579b5e1c5dd17adc2afea596be1b | |
parent | 1ba2740e29e832c05a8f064cfd36e41766b8218d (diff) | |
download | pyiso8601-2ae9e9b51251c2188c3e851b98f786cd68701d3f.tar.gz |
Added testcase from https://code.google.com/p/pyiso8601/issues/detail?id=17
-rw-r--r-- | iso8601/test_iso8601.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |