def test_alloc_free(): pkt = Packet() assert NULL != pkt.av_packet pkt._free() assert NULL == pkt.av_packet