'Test questions API call.'

def test_questions(self):

    a = AnswerFactory()
    a.question.solution = a
    a.question.save()
    AnswerFactory()
    QuestionFactory()
    QuestionFactory(is_locked=True)
    r = self._get_api_result('api.kpi.questions')
    eq_(r['objects'][0]['solved'], 1)
    eq_(r['objects'][0]['responded_24'], 2)
    eq_(r['objects'][0]['responded_72'], 2)
    eq_(r['objects'][0]['questions'], 3)
