'Test the hint button enabled state when there is just a single hint.'

def test_single_demand_hint(self):

    test_xml = '\n                                                <problem>\n                                                <p>That    is    the    question</p>\n                                                <multiplechoiceresponse>\n                                                        <choicegroup    type="MultipleChoice">\n                                                                <choice    correct="false">Alpha    <choicehint>A    hint</choicehint>\n                                                                </choice>\n                                                                <choice    correct="true">Beta</choice>\n                                                        </choicegroup>\n                                                </multiplechoiceresponse>\n                                                <demandhint>\n                                                        <hint>Only    demand    hint</hint>\n                                                </demandhint>\n                                                </problem>'
    module = CapaFactory.create(xml=test_xml)
    module.get_problem_html()
    context = module.system.render_template.call_args[0][1]
    self.assertTrue(context['demand_hint_possible'])
    self.assertTrue(context['should_enable_next_hint'])
    result = module.get_demand_hint(0)
    self.assertEqual(result['hint_index'], 0)
    self.assertFalse(result['should_enable_next_hint'])
