'Verify the canonical URL is set correctly.'

def test_canonical_url(self):

    f = ForumFactory()
    response = get(self.client, 'forums.threads', args=[f.slug])
    eq_(('/forums/%s' % f.slug), pq(response.content)('link[rel="canonical"]')[0].attrib['href'])
