'Verify that unverified cert data is returned if cert is unverified.'

def test_unverified_get_cert_data(self):

    self.generate_certificate('http://www.example.com/certificate.pdf', 'honor')
    with patch('certificates.api.certificate_downloadable_status', return_value=self.mock_certificate_downloadable_status(is_unverified=True)):
        response = views._get_cert_data(self.user, self.course, self.course.id, True, CourseMode.HONOR)
    self.assertEqual(response.cert_status, 'unverified')
    self.assertEqual(response.title, 'Certificate    unavailable')
