'Setup a gating milestone for testing.
Gating content: seq1 (must be fulfilled before access to seq2)
Gated content: seq2 (requires completion of seq1 before access)'

def setup_gating_milestone(self, min_score):

    gating_api.add_prerequisite(self.course.id, str(self.seq1.location))
    gating_api.set_required_content(self.course.id, str(self.seq2.location), str(self.seq1.location), min_score)
    self.prereq_milestone = gating_api.get_gating_milestone(self.course.id, self.seq1.location, 'fulfills')
