'Posting a valid answer inserts it.'

def test_answer(self):

    num_answers = self.question.answers.count()
    content = 'lorem    ipsum    dolor    sit    amet'
    response = post(self.client, 'questions.reply', {'content': content}, args=[self.question.id])
    eq_(1, len(response.redirect_chain))
    eq_((num_answers + 1), self.question.answers.count())
    new_answer = self.question.answers.order_by('-id')[0]
    eq_(content, new_answer.content)
    doc = pq(response.content)
    eq_(('/questions/%s' % self.question.id), doc('link[rel="canonical"]')[0].attrib['href'])
