def test_read_date(fd): val = AMF3DatePacker.read(fd, []) assert val.time == DATE.time
def test_pack_date(): assert AMF3DatePacker.pack(DATE, []) == DATE_BYTES
def test_size_date(): assert AMF3DatePacker.size(DATE, []) == DATE_SIZE