'Verifies the correct URL is returned in the response
for PDF certificates.'

def verify_pdf_certificate(self):

    self.login_and_enroll()
    certificate_url = 'http://test_certificate_url'
    GeneratedCertificateFactory.create(user=self.user, course_id=self.course.id, status=CertificateStatuses.downloadable, mode='verified', download_url=certificate_url)
    response = self.api_response()
    certificate_data = response.data[0]['certificate']
    self.assertEquals(certificate_data['url'], certificate_url)
