'Test adding a subsection as a prerequisite'

@patch('contentstore.views.item.gating_api.add_prerequisite')
def test_add_prerequisite(self, mock_add_prereq):

    self.client.ajax_post(self.seq1_url, data={'isPrereq': True})
    mock_add_prereq.assert_called_with(self.course.id, self.seq1.location)
