def on_pong(self, conn, message):
    try:
        del self.pingMap[message.nonce]
    except KeyError:
        raise AssertionError(('Got pong for unknown ping [%s]' % repr(message)))
def on_pong(self, conn, message):
    try:
        del self.pingMap[message.nonce]
    except KeyError:
        raise AssertionError(('Got pong for unknown ping [%s]' % repr(message)))