smsframework/providers/loopback.py
def received(self, src, body):
        """ Simulate an incoming message

            :type src: str
            :param src: Message source
            :type boby: str | unicode
            :param body: Message body
            :rtype: IncomingMessage
        """
        # Create the message
        self._msgid += 1
        message = IncomingMessage(src, body, self._msgid)

        # Log traffic
        self._traffic.append(message)

        # Handle it
        self._receive_message(message)

        # Finish
        return message
def received(self, src, body):
        # Create the message
        self._msgid += 1
        message = IncomingMessage(src, body, self._msgid)

        # Log traffic
        self._traffic.append(message)

        # Handle it
        self._receive_message(message)

        # Finish
        return message
def received ( self , src , body ) : # Create the message self . _msgid += 1 message = IncomingMessage ( src , body , self . _msgid ) # Log traffic self . _traffic . append ( message ) # Handle it self . _receive_message ( message ) # Finish return message
Simulate an incoming message

            :type src: str
            :param src: Message source
            :type boby: str | unicode
            :param body: Message body
            :rtype: IncomingMessage
Simulate an incoming message