'Test adding a gated subsection'

@patch('contentstore.views.item.gating_api.set_required_content')
def test_add_gate(self, mock_set_required_content):

    self.client.ajax_post(self.seq2_url, data={'prereqUsageKey': unicode(self.seq1.location), 'prereqMinScore': '100'})
    mock_set_required_content.assert_called_with(self.course.id, self.seq2.location, unicode(self.seq1.location), '100')
