'Check answer-pool question track_function uses unmasked names'

def test_check_unmask_answerpool(self):

    xml = textwrap.dedent('\n                                                <problem>\n                                                <multiplechoiceresponse>\n                                                        <choicegroup    type="MultipleChoice"    answer-pool="4">\n                                                                <choice    correct="false">Apple</choice>\n                                                                <choice    correct="false">Banana</choice>\n                                                                <choice    correct="false">Chocolate</choice>\n                                                                <choice    correct    ="true">Donut</choice>\n                                                        </choicegroup>\n                                                </multiplechoiceresponse>\n                                                </problem>\n                                ')
    module = CapaFactory.create(xml=xml)
    with patch.object(module.runtime, 'publish') as mock_track_function:
        get_request_dict = {CapaFactory.input_key(): 'choice_2'}
        module.submit_problem(get_request_dict)
        mock_call = mock_track_function.mock_calls[1]
        event_info = mock_call[1][2]
        self.assertEqual(event_info['answers'][CapaFactory.answer_key()], 'choice_2')
        self.assertEquals(event_info['permutation'][CapaFactory.answer_key()], ('answerpool', ['choice_1', 'choice_3', 'choice_2', 'choice_0']))
        self.assertEquals(event_info['success'], 'incorrect')
