'Tests get_lms_link_for_certificate_web_view.'

def lms_link_for_certificate_web_view_test(self):

    course_key = CourseLocator('mitX', '101', 'test')
    dummy_user = ModuleStoreEnum.UserID.test
    mode = 'professional'
    self.assertEquals(utils.get_lms_link_for_certificate_web_view(dummy_user, course_key, mode), '//localhost:8000/certificates/user/{user_id}/course/{course_key}?preview={mode}'.format(user_id=dummy_user, course_key=course_key, mode=mode))
    with with_site_configuration_context(configuration={'course_org_filter': 'mitX', 'LMS_BASE': 'dummyhost:8000'}):
        self.assertEquals(utils.get_lms_link_for_certificate_web_view(dummy_user, course_key, mode), '//dummyhost:8000/certificates/user/{user_id}/course/{course_key}?preview={mode}'.format(user_id=dummy_user, course_key=course_key, mode=mode))
