'Test checkbox tracking log - by far the most complicated case'

def test_tracking_log(self):

    self.get_hint(u'1_2_1', [u'choice_0'])
    self.problem.capa_module.runtime.track_function.assert_called_with('edx.problem.hint.feedback_displayed', {'hint_label': u'Incorrect:', 'module_id': 'i4x://Foo/bar/mock/abc', 'problem_part_id': '1_1', 'choice_all': ['choice_0', 'choice_1', 'choice_2'], 'correctness': False, 'trigger_type': 'single', 'student_answer': [u'choice_0'], 'hints': [{'text': 'A    true', 'trigger': [{'choice': 'choice_0', 'selected': True}]}], 'question_type': 'choiceresponse'})
    self.problem.capa_module.runtime.track_function.reset_mock()
    self.get_hint(u'1_2_1', [u'choice_1', u'choice_2'])
    self.problem.capa_module.runtime.track_function.assert_called_with('edx.problem.hint.feedback_displayed', {'hint_label': u'Incorrect:', 'module_id': 'i4x://Foo/bar/mock/abc', 'problem_part_id': '1_1', 'choice_all': ['choice_0', 'choice_1', 'choice_2'], 'correctness': False, 'trigger_type': 'single', 'student_answer': [u'choice_1', u'choice_2'], 'hints': [{'text': 'A    false', 'trigger': [{'choice': 'choice_0', 'selected': False}]}, {'text': 'C    true', 'trigger': [{'choice': 'choice_2', 'selected': True}]}], 'question_type': 'choiceresponse'})
    self.problem.capa_module.runtime.track_function.reset_mock()
    self.get_hint(u'1_2_1', [u'choice_0', u'choice_2'])
    self.problem.capa_module.runtime.track_function.assert_called_with('edx.problem.hint.feedback_displayed', {'hint_label': u'Correct:', 'module_id': 'i4x://Foo/bar/mock/abc', 'problem_part_id': '1_1', 'choice_all': ['choice_0', 'choice_1', 'choice_2'], 'correctness': True, 'trigger_type': 'compound', 'student_answer': [u'choice_0', u'choice_2'], 'hints': [{'text': 'A    C    Compound', 'trigger': [{'choice': 'choice_0', 'selected': True}, {'choice': 'choice_2', 'selected': True}]}], 'question_type': 'choiceresponse'})
