(self, data = None, timeout = 3)
Asserts that the other party is functioning properly, by making sure
        the *data* is echoed back before the *timeout* expires
        
        :param data: the data to send (leave ``None`` for the default buffer)
        :param timeout: the maximal time to wait for echo
        
        :raises: :class:`PingError` if the echoed data does not match
Asserts that the other party is functioning properly, by making sure
        the *data* is echoed back before the *timeout* expires
        
        :param data: the data to send (leave ``None`` for the default buffer)
        :param timeout: the maximal time to wait for echo
        
        :raises: :class:`PingError` if the echoed data does not match
Asserts that the other party is functioning properly by making sure the * data * is echoed back before the * timeout * expires : param data : the data to send ( leave None for the default buffer ) : param timeout : the maximal time to wait for echo : raises : : class : PingError if the echoed data does not match
def ping(self, data = None, timeout = 3):
        """       
        Asserts that the other party is functioning properly, by making sure
        the *data* is echoed back before the *timeout* expires
        
        :param data: the data to send (leave ``None`` for the default buffer)
        :param timeout: the maximal time to wait for echo
        
        :raises: :class:`PingError` if the echoed data does not match
        """
        if data is None:
            data = "abcdefghijklmnopqrstuvwxyz" * 20
        res = self.async_request(consts.HANDLE_PING, data, timeout = timeout)
        if res.value != data:
            raise PingError("echo mismatches sent data")
def ping ( self , data = None , timeout = 3 ) : if data is None : data = "abcdefghijklmnopqrstuvwxyz" * 20 res = self . async_request ( consts . HANDLE_PING , data , timeout = timeout ) if res . value != data : raise PingError ( "echo mismatches sent data" )