From 509f27f02cf4cd748e147af6a8aa75a6acc1e941 Mon Sep 17 00:00:00 2001 From: Adam Palay Date: Fri, 29 May 2015 18:50:23 -0400 Subject: [PATCH] Revert "changes for failing label test" This reverts commit c75526ea5e57b102d4d3b16aa423d16155940b66. --- common/lib/capa/capa/tests/test_input_templates.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/lib/capa/capa/tests/test_input_templates.py b/common/lib/capa/capa/tests/test_input_templates.py index f51244879e..510a45ba74 100644 --- a/common/lib/capa/capa/tests/test_input_templates.py +++ b/common/lib/capa/capa/tests/test_input_templates.py @@ -126,7 +126,7 @@ class ChoiceGroupTemplateTest(TemplateTestCase): self.context = {'id': '1', 'choices': choices, 'status': Status('correct'), - 'question_label': 'test', + 'question_label': '', 'label': 'test', 'input_type': 'checkbox', 'name_array_suffix': '1', @@ -343,8 +343,8 @@ class ChoiceGroupTemplateTest(TemplateTestCase): def test_label(self): xml = self.render_to_xml(self.context) - xpath = "//fieldset/legend" - self.assert_has_text(xml, xpath, self.context['question_label']) + xpath = "//fieldset[@aria-label='%s']" % self.context['label'] + self.assert_has_xpath(xml, xpath, self.context) class TextlineTemplateTest(TemplateTestCase):