

def test_settings_delete_channel(self):
    self.login('popular')
    r = self.client.post('/channel/popular/settings/delete', {
        'actor_remove': '',
        'nick': '#popular@example.com',
        '_nonce': util.create_nonce('popular', 'actor_remove'),
    })
    r = self.assertRedirectsPrefix(r, '/channel')
    self.assertContains(r, 'Deleted')
    self.assertWellformed(r)

dataset/ETHPy150Open CollabQ/CollabQ/channel/tests.py SettingsTest.test_settings_delete_channel/original