'Test that enterprise data sharing consent is required when enabled for the various discussion views.'

def test_consent_required(self, mock_request):

    thread_id = 'dummy'
    course_id = unicode(self.course.id)
    mock_request.side_effect = make_mock_request_impl(course=self.course, text='dummy', thread_id=thread_id)
    for url in (reverse('discussion.views.forum_form_discussion', kwargs=dict(course_id=course_id)), reverse('discussion.views.single_thread', kwargs=dict(course_id=course_id, discussion_id=self.discussion_id, thread_id=thread_id))):
        self.verify_consent_required(self.client, url)
