'Test test_required_content'

def test_required_content(self):

    gating_api.add_prerequisite(self.course.id, self.seq1.location)
    gating_api.set_required_content(self.course.id, self.seq2.location, self.seq1.location, 100)
    (prereq_content_key, min_score) = gating_api.get_required_content(self.course.id, self.seq2.location)
    self.assertEqual(prereq_content_key, unicode(self.seq1.location))
    self.assertEqual(min_score, 100)
    gating_api.set_required_content(self.course.id, self.seq2.location, None, None)
    (prereq_content_key, min_score) = gating_api.get_required_content(self.course.id, self.seq2.location)
    self.assertIsNone(prereq_content_key)
    self.assertIsNone(min_score)
