'Check the status of a certificate.'

def _assert_cert_status(self, course_key, user, expected_status):

    cert = GeneratedCertificate.eligible_certificates.get(user=user, course_id=course_key)
    self.assertEqual(cert.status, expected_status)
