'Deleting an answer with permissions.'

def test_delete_answer_with_permissions(self):

    ans = self.question.last_answer
    u = UserFactory()
    add_permission(u, Answer, 'delete_answer')
    self.client.login(username=u.username, password='testpass')
    response = get(self.client, 'questions.delete_answer', args=[self.question.id, ans.id])
    eq_(200, response.status_code)
    response = post(self.client, 'questions.delete_answer', args=[self.question.id, ans.id])
    eq_(0, Answer.objects.filter(pk=self.question.id).count())
