def METHOD_NAME(self, enable_social_sharing, enable_mktg_site, use_overview=True):
    """
    Get course sharing link.
    Arguments:
        enable_social_sharing(Boolean): To indicate whether social sharing is enabled.
        enable_mktg_site(Boolean): A feature flag to decide activation of marketing site.
    Keyword Arguments:
        use_overview: indicates whether course overview or course block should get
        past to get_link_for_about_page.
    Returns course sharing url.
    """
    mock_settings = {
        'FEATURES': {
            'ENABLE_MKTG_SITE': enable_mktg_site
        },
        'SOCIAL_SHARING_SETTINGS': {
            'CUSTOM_COURSE_URLS': enable_social_sharing
        },
    }
    with mock.patch.multiple('django.conf.settings', **mock_settings):
        course_sharing_link = get_link_for_about_page(
            self.course_overview if use_overview else self.course
        )
    return course_sharing_link