def test_new_thread_redirect(self):
        f = ForumFactory()
        u = UserFactory()

        self.client.login(username=u.username, password='testpass')
        url = reverse('forums.new_thread', args=[f.slug])
        data = {'title': 'some title', 'content': 'some content'}
        r = self.client.post(url, data, follow=False)
        eq_(302, r.status_code)
        assert f.slug in r['location']
        assert 'last=' in r['location']
Posting a new thread should redirect.
dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_views.py/ThreadTests.test_new_thread_redirect