def test_parse_part_A():
    """ test if the right data was detected """

    result = parse_part_A(PART_A)

    assert result, "unexpected result %r" % result
    # time-parsing is a test-case on it's own
    assert result[1] == u"OSD4l1BEUOkAAHZ8Y3QAAAAH"
    assert result[2] == u"209.90.77.54"
    assert result[3] == 64995
    assert result[4] == u"80.68.80.233"
    assert result[5] == 80
def test_parse_part_A_timestamp():
    """ test if the right data was detected """

    result = parse_part_A(PART_A)

    assert result[0] == datetime.datetime(2008, 1, 9, 12, 27, 56)