

def test_leave_channel_not_member(self):
    r.login('annoying')
    r = self.client.post('/channel/popular', {
        'nick': 'annoying@example.com',
        'channel_part': '',
        'channel': '#popular@example.com',
        '_nonce': util.create_nonce('annoying', 'channel_part'),
    })
    self.assertContains(r, 'not a member')
    self.assertWellformed(r)

dataset/ETHPy150Open CollabQ/CollabQ/channel/tests.py ChannelLeaveTest.test_leave_channel_not_member/VarMisuse@10/16 `self`->`r`