'Check that shuffle unmasking is plumbed through: when submit_problem is called,
unmasked names should appear in the track_function event_info.'

def test_check_unmask(self):

    module = CapaFactory.create(xml=self.common_shuffle_xml)
    with patch.object(module.runtime, 'publish') as mock_track_function:
        get_request_dict = {CapaFactory.input_key(): 'choice_3'}
        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_3')
        self.assertEquals(event_info['permutation'][CapaFactory.answer_key()], ('shuffle', ['choice_3', 'choice_1', 'choice_2', 'choice_0']))
        self.assertEquals(event_info['success'], 'correct')
