def test_parse_timestamp_random_string(): parse_timestamp('spam')
def test_parse_zero_timestamp(): assert parse_timestamp('0000-00-00T00:00:00Z') == None
def test_parse_expected_timestamp(): assert (parse_timestamp('2010-10-10T01:01:10Z') == datetime.datetime(2010, 10, 10, 01, 01, 10))
def test_parse_blank_timestamp(): parse_timestamp('')
def test_parse_expected_timestamp(): assert (parse_timestamp('2010-10-10T01:01:10Z') == datetime.datetime( 2010, 10, 10, 01, 01, 10))