'Test to get a certificate for a user for a specific course.'

def test_get_certificate_for_user(self):

    cert = certs_api.get_certificate_for_user(self.student.username, self.web_cert_course.id)
    self.assertEqual(cert['username'], self.student.username)
    self.assertEqual(cert['course_key'], self.web_cert_course.id)
    self.assertEqual(cert['created'], self.now)
    self.assertEqual(cert['type'], CourseMode.VERIFIED)
    self.assertEqual(cert['status'], CertificateStatuses.downloadable)
    self.assertEqual(cert['grade'], '0.88')
    self.assertEqual(cert['is_passing'], True)
    self.assertEqual(cert['download_url'], 'www.google.com')
