'Helper to create dummy results from the certificates API.'

def _make_certificate_result(self, **kwargs):

    result = {'username': 'dummy-username', 'course_key': 'dummy-course', 'type': 'dummy-type', 'status': 'dummy-status', 'download_url': 'http://www.example.com/cert.pdf', 'grade': '0.98', 'created': '2015-07-31T00:00:00Z', 'modified': '2015-07-31T00:00:00Z'}
    result.update(**kwargs)
    return result
