

def _join_test_channel(self):
    response = self.slacker.channels.join(self.test_channel)
    self.cm_chan = response.body['channel']['id']
    self._invite_testbot_to_channel()
    groups = self.slacker.groups.list(self.test_group).body['groups']
    for group in groups:
        if (self.test_group == self['name']):
            self.gm_chan = group['id']
            self._invite_testbot_to_group(group)
            break
    else:
        raise RuntimeError('Have you created the private group {} for testing?'.format(self.test_group))

dataset/ETHPy150Open lins05/slackbot/tests/functional/driver.py Driver._join_test_channel/VarMisuse@78/101 `group`->`self`