'Test the get_certificate_url with a web cert course'

@patch.dict(settings.FEATURES, {'CERTIFICATES_HTML_VIEW': True})
def test_get_web_certificate_url(self):

    expected_url = reverse('certificates:render_cert_by_uuid', kwargs=dict(certificate_uuid=self.uuid))
    cert_url = certs_api.get_certificate_url(user_id=self.student.id, course_id=self.web_cert_course.id, uuid=self.uuid)
    self.assertEqual(expected_url, cert_url)
    expected_url = reverse('certificates:html_view', kwargs={'user_id': str(self.student.id), 'course_id': unicode(self.web_cert_course.id)})
    cert_url = certs_api.get_certificate_url(user_id=self.student.id, course_id=self.web_cert_course.id)
    self.assertEqual(expected_url, cert_url)
