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