'Test gating milestone data is cleanup up when course content item is deleted'

@patch('contentstore.signals.handlers.gating_api.set_required_content')
@patch('contentstore.signals.handlers.gating_api.remove_prerequisite')
def test_sequential_deleted(self, mock_remove_prereq, mock_set_required):

    handle_item_deleted(usage_key=self.open_seq.location, user_id=0)
    mock_remove_prereq.assert_called_with(self.open_seq.location)
    mock_set_required.assert_called_with(self.open_seq.location.course_key, self.open_seq.location, None, None)
