

def test_join_channel(self):
    self.login('annoying')
    r = self.client.post('/channel/popular', {
        'nick': 'annoying@example.com',
        'channel_join': '',
        'channel': '#popular@example.com',
        '_nonce': util.create_nonce('annoying', 'channel_join'),
    })
    r = self.assertRedirectsPrefix(r, '/channel/popular')
    self.assertContains(self, 'You have joined')
    self.assertWellformed(r)

dataset/ETHPy150Open CollabQ/CollabQ/channel/tests.py ChannelJoinTest.test_join_channel/VarMisuse@74/123 `r`->`self`