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