@staticmethod<EOL><INDENT>def create_packet(header, data):<DEDENT>
packet = IncomingPacket()<EOL>packet.header = header<EOL>packet.data = data<EOL>if len(header) == HeronProtocol.HEADER_SIZE:<EOL><INDENT>packet.is_header_read = True<EOL>if len(data) == packet.get_datasize():<EOL><INDENT>packet.is_complete = True<EOL><DEDENT><DEDENT>return packet<EOL>
Creates an IncomingPacket object from header and data

        This method is for testing purposes