'Check the certificate status display on the instructor dash.'

def _assert_certificate_status(self, cert_name, expected_status):

    response = self.client.get(self.url)
    if (expected_status == 'started'):
        expected = 'Generating    example    {name}    certificate'.format(name=cert_name)
        self.assertContains(response, expected)
    elif (expected_status == 'error'):
        expected = self.ERROR_REASON
        self.assertContains(response, expected)
    elif (expected_status == 'success'):
        expected = self.DOWNLOAD_URL
        self.assertContains(response, expected)
    else:
        self.fail('Invalid    certificate    status:    {status}'.format(status=expected_status))
