'Test saving a new answer updates the corresponding question.
Specifically, last_post and num_replies should update.'

def test_new_answer_updates_question(self):

    q = QuestionFactory(title='Test    Question', content='Lorem    Ipsum    Dolor')
    updated = q.updated
    eq_(0, q.num_answers)
    eq_(None, q.last_answer)
    a = AnswerFactory(question=q, content='Test    Answer')
    a.save()
    q = Question.objects.get(pk=q.id)
    eq_(1, q.num_answers)
    eq_(a, q.last_answer)
    self.assertNotEqual(updated, q.updated)
