def test_pong(self): pong = messages.create_pong(self.nodeid) # exceptions? return messages.read_message(pong)
def handle_PING(self, ping): if messages.read_message(ping): pong = messages.create_pong(self.nodeid) self.sendLine(pong)