'Verify that the wrapped view is called directly when enterprise integration is enabled,
and no course consent is required.'

@mock.patch('openedx.features.enterprise_support.api.enterprise_enabled')
@mock.patch('openedx.features.enterprise_support.api.consent_necessary_for_course')
def test_no_course_data_consent_required(self, mock_consent_necessary, mock_enterprise_enabled):

    mock_enterprise_enabled.return_value = True
    mock_consent_necessary.return_value = False
    self.check_data_sharing_consent(consent_required=False)
    mock_enterprise_enabled.assert_called_once()
    mock_consent_necessary.assert_called_once()
