

def test_first_post_to_create_channel_logged_out(self):
    r = self.client.post('/channel/fastfingers', {
        'message': 'First post!',
    })
    r = self.assertRedirectsPrefix(r, '/channel/create', target_status_code=302)
    r = self.assertRedirectsPrefix(r, '/login')
    self.assertWellformed(r)

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