'Test helper to create a gating requirement.
Args:
gated_block: The block that should be inaccessible until gating_block is completed
gating_block: The block that must be completed before access is granted'

def setup_gated_section(self, gated_block, gating_block):

    gating_api.add_prerequisite(self.course.id, unicode(gating_block.location))
    gating_api.set_required_content(self.course.id, gated_block.location, gating_block.location, 100)
