

def test_leave_channel(self):
    self.login('unpopular')
    r = self.client.post('/channel/popular', {
        'nick': 'unpopular@example.com',
        'channel_part': '',
        'channel': '#popular@example.com',
        '_nonce': util.create_nonce('unpopular', 'channel_part'),
    })
    r = self.assertRedirectsPrefix(r, '/channel/popular')
    self.assertContains(r, 'left the channel')
    self.assertWellformed(self)

dataset/ETHPy150Open CollabQ/CollabQ/channel/tests.py ChannelLeaveTest.test_leave_channel/VarMisuse@83/146 `r`->`self`