'Links posted should have rel=nofollow.'

def test_links_nofollow(self):

    p = PostFactory(content='linking    http://test.org')
    t = p.thread
    f = t.forum
    response = get(self.client, 'forums.posts', args=[f.slug, t.pk])
    doc = pq(response.content)
    eq_('nofollow', doc('ol.posts    div.content    a')[0].attrib['rel'])
