'Links posted should have rel=nofollow.'

def test_links_nofollow(self):

    u = UserFactory()
    t = ThreadFactory()
    t.new_post(creator=u, content='linking    http://test.org')
    response = get(self.client, 'wiki.discuss.posts', args=[t.document.slug, t.pk])
    doc = pq(response.content)
    eq_('nofollow', doc('ol.posts    div.content    a')[0].attrib['rel'])
