'When an answer is marked as the solution to a question, an Action should be created.'

def test_question_solved_makes_action(self):

    ans = AnswerFactory()
    Action.objects.all().delete()
    ans.question.set_solution(ans, ans.question.creator)
    act = Action.objects.action_object(ans).get()
    eq_(act.actor, ans.question.creator)
    eq_(act.verb, 'marked    as    a    solution')
    eq_(act.target, ans.question)
