'Posts view - redirect if thread does not belong to forum.'

def test_posts_thread_belongs_to_forum(self):

    f = ForumFactory()
    t = ThreadFactory()
    r = get(self.client, 'forums.posts', args=[f.slug, t.id])
    eq_(200, r.status_code)
    u = r.redirect_chain[0][0]
    assert u.endswith(t.get_absolute_url())
