Example #1
0
def test_parse_timestamp_random_string():
    parse_timestamp('spam')
Example #2
0
def test_parse_zero_timestamp():
    assert parse_timestamp('0000-00-00T00:00:00Z') == None
Example #3
0
def test_parse_expected_timestamp():
    assert (parse_timestamp('2010-10-10T01:01:10Z') ==
            datetime.datetime(2010, 10, 10, 01, 01, 10))
Example #4
0
def test_parse_blank_timestamp():
    parse_timestamp('')
Example #5
0
def test_parse_timestamp_random_string():
    parse_timestamp('spam')
Example #6
0
def test_parse_expected_timestamp():
    assert (parse_timestamp('2010-10-10T01:01:10Z') == datetime.datetime(
        2010, 10, 10, 01, 01, 10))
Example #7
0
def test_parse_zero_timestamp():
    assert parse_timestamp('0000-00-00T00:00:00Z') == None
Example #8
0
def test_parse_blank_timestamp():
    parse_timestamp('')