'For a given block, return the parent section'

def _containing_section(self, block_urlname):

    for section in self.test_configuration:
        blocks = section['xblocks']
        for block in blocks:
            if (block['urlname'] == block_urlname):
                return section['urlname']
    raise Exception(('Block    not    found    ' + block_urlname))
