

def test_create_new_channel(self):
    self.login('popular')
    r = self.client.post('/channel/create', {
        'nick': 'popular@example.com',
        'channel': 'broken',
        'channel_create': '',
        '_nonce': util.create_nonce('popular', 'channel_create'),
    })
    r = self.assertRedirectsPrefix(r, '/channel/broken')
    self.assertTemplateUsed(r, 'channel/templates/history.html')
    self.assertTemplateUsed(r, 'common/templates/message_form.html')
    self.assertWellformed(r)

dataset/ETHPy150Open CollabQ/CollabQ/channel/tests.py CreationTest.test_create_new_channel/original