'Tests whether we are using a section or a label to wrap choice elements.
Section is used for checkbox, so inputting text does not deselect'

def test_grouping_tag(self):

    input_tags = ('radio', 'checkbox')
    self.context['status'] = Status('correct')
    xpath = "//section[@id='forinput1_choiceinput_0bc']"
    self.context['value'] = {}
    for input_type in input_tags:
        self.context['input_type'] = input_type
        xml = self.render_to_xml(self.context)
        self.assert_has_xpath(xml, xpath, self.context)
