'Creates a CapaDescriptor to run test against'

def _create_descriptor(self, xml, name=None):

    descriptor = CapaDescriptor(get_test_system(), scope_ids=1)
    descriptor.data = xml
    if name:
        descriptor.display_name = name
    return descriptor
