'Verify program certificates are retrieved even if the learner has not earned any course certificates.'

def test_course_run_certificates_missing(self, mock_get_credentials):

    expected = [{'type': 'program', 'title': self.program['title'], 'url': self.program_certificate_url}]
    mock_get_credentials.return_value = [{'certificate_url': self.program_certificate_url}]
    certificates = get_certificates(self.user, self.program)
    self.assertTrue(mock_get_credentials.called)
    self.assertEqual(certificates, expected)
