def test_parse_no_timezone():
 d = iso8601.parse_date('2007-01-01T08:00:00')
 assert (d.year == 2007)
 assert (d.month == 1)
 assert (d.day == 1)
 assert (d.hour == 8)
 assert (d.minute == 0)
 assert (d.second == 0)
 assert (d.microsecond == 0)
 assert (d.tzinfo == iso8601.UTC)

def test_parse_no_timezone ( ) : d = iso8601 . parse_date ( '2007-01-01T08:00:00' ) assert ( d . year == 2007 ) assert ( d . month == 1 ) assert ( d . day == 1 ) assert ( d . hour == 8 ) assert ( d . minute == 0 ) assert ( d . second == 0 ) assert ( d . microsecond == 0 ) assert ( d . tzinfo == iso8601 . UTC )
issue 4 - handle datetime string without timezone this tests what happens when you parse a date with no timezone .