def convert_to_incoming_packet(reqid, message):
raw = OutgoingPacket.create_packet(reqid, message).raw<EOL>dispatcher = MockDispatcher()<EOL>dispatcher.prepare_with_raw(raw)<EOL>packet = IncomingPacket()<EOL>packet.read(dispatcher)<EOL>packet.data = packet.data<EOL>return packet<EOL>
Convert (reqid, message) pair to IncomingPacket object