diff options
author | Michael Twomey <michael.twomey@fieldaware.com> | 2013-10-18 17:05:35 +0100 |
---|---|---|
committer | Michael Twomey <michael.twomey@fieldaware.com> | 2013-10-18 17:05:35 +0100 |
commit | ad5f1dd41a0683d073eecfb46276066a7d5f912f (patch) | |
tree | 09f337804e784b16a7b67f6549b91a6c12775730 | |
parent | 2ae9e9b51251c2188c3e851b98f786cd68701d3f (diff) | |
download | pyiso8601-ad5f1dd41a0683d073eecfb46276066a7d5f912f.tar.gz |
Added testcase from https://code.google.com/p/pyiso8601/issues/detail?id=16
-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 86f0d16..d684bd2 100644 --- a/iso8601/test_iso8601.py +++ b/iso8601/test_iso8601.py @@ -60,6 +60,7 @@ def test_parse_invalid_date(invalid_date): ("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 + ("2010-06-12", datetime.datetime(2010, 6, 12, tzinfo=iso8601.UTC)), # https://code.google.com/p/pyiso8601/issues/detail?id=16 ]) def test_parse_valid_date(valid_date, expected_datetime): parsed = iso8601.parse_date(valid_date) |