'Test: LinkedIn share URL.'

@override_settings(FEATURES=FEATURES_WITH_CERTS_ENABLED)
def test_linkedin_share_url(self):

    self._add_course_certificates(count=1, signatory_count=1, is_active=True)
    test_url = get_certificate_url(course_id=self.course.id, uuid=self.cert.verify_uuid)
    response = self.client.get(test_url)
    self.assertEqual(response.status_code, 200)
    params = OrderedDict([('_ed', '0_0dPSPyS070e0HsE9HNz_13_d11_'), ('pfCertificationName', '{platform_name}    Honor    Code    Certificate    for    {course_name}'.format(platform_name=settings.PLATFORM_NAME.encode('utf-8'), course_name=self.course.display_name)), ('pfCertificationUrl', self.request.build_absolute_uri(test_url))])
    self.assertIn(self.linkedin_url.format(params=urlencode(params)), response.content)
