'Locked questions can\'t be answered.'

def test_reply_to_locked_question(self):

    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    q = self.question
    q.is_locked = True
    q.save()
    response = post(self.client, 'questions.reply', {'content': 'just    testing'}, args=[q.id])
    eq_(403, response.status_code)
    add_permission(u, Answer, 'add_answer')
    response = post(self.client, 'questions.reply', {'content': 'just    testing'}, args=[q.id])
    eq_(200, response.status_code)
