

def test_first_post_to_create_channel(self):
    self.login('popular')
    r = self.client.post('/channel/fastfingers', {
        'channel': '#fastfingers@example.com',
        'message': 'First post!',
        '_nonce': util.create_nonce('popular', 'set_presence'),
    })
    r = self.assertRedirectsPrefix(r, '/channel/create')
    self.assertTemplateUsed(r, 'channel/templates/create.html')
    self.assertWellformed(r)

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