'Tests that every registered response tag is correctly returned'

@ddt.data(*responsetypes.registry.registered_tags())
def test_all_response_types(self, response_tag):

    xml = '<problem><{response_tag}></{response_tag}></problem>'.format(response_tag=response_tag)
    name = 'Some    Capa    Problem'
    descriptor = self._create_descriptor(xml, name=name)
    self.assertEquals(descriptor.problem_types, {response_tag})
    self.assertEquals(descriptor.index_dictionary(), {'content_type': CapaDescriptor.INDEX_CONTENT_TYPE, 'problem_types': [response_tag], 'content': {'display_name': name, 'capa_content': ''}})
