'Verify the method gives correct course sharing url when:
1. Neither marketing url nor social sharing url is set.
2. Either marketing url or social sharing url is set.'

@ddt.data((['social_sharing_url'], 'test_marketing_url'), (['marketing_url'], 'test_social_sharing_url'), (['social_sharing_url', 'marketing_url'], '{}/courses/course-v1:test_org+test_number+test_run/about'.format(settings.LMS_ROOT_URL)))
@ddt.unpack
def test_sharing_link_with_course_overview_attrs(self, overview_attrs, expected_course_sharing_link):

    for overview_attr in overview_attrs:
        setattr(self.course_overview, overview_attr, None)
        self.course_overview.save()
    actual_course_sharing_link = self.get_course_sharing_link(enable_social_sharing=True, enable_mktg_site=True)
    self.assertEqual(actual_course_sharing_link, expected_course_sharing_link)
