def _check_logical_channel_is_opened(self, channel_id):
        if not self._is_active:
            raise Exception('Mux client is not active')

        if not channel_id in self._logical_channels:
            raise Exception('Logical channel %d is not established.')
dataset/ETHPy150Open google/pywebsocket/test/mux_client_for_testing.py/MuxClient._check_logical_channel_is_opened/original