def test_parse_iso(): """Test parsing ISO-formatted dates.""" parsed = parse_iso_date('2015-06-15T12:00:00Z') assert parsed.utcoffset() == timedelta(0) assert parsed == datetime(2015, 6, 15, 12, tzinfo=utc)
def test_parse_iso(): parsed = parse_iso_date('2015-06-15T12:00:00Z') eq_(parsed.utcoffset(), timedelta(0)) eq_(parsed, datetime(2015, 6, 15, 12, tzinfo=utc))
def test_parse_iso(): parsed = parse_iso_date('2015-06-15T12:00:00Z') assert parsed.utcoffset() == timedelta(0) assert parsed == datetime(2015, 6, 15, 12, tzinfo=utc)