'Links posted in questions and answers should have rel=nofollow.'

def test_links_nofollow(self):

    q = self.question
    q.content = 'lorem    http://ipsum.com'
    q.save()
    a = self.answer
    a.content = 'testing    http://example.com'
    a.save()
    response = get(self.client, 'questions.details', args=[self.question.id])
    doc = pq(response.content)
    eq_('nofollow', doc('.question    .main-content    a')[0].attrib['rel'])
    eq_('nofollow', doc('.answer    .main-content    a')[0].attrib['rel'])
