def METHOD_NAME(urlopen, Request, mirrorurl):
    excp = CertificateError('certificate error')
    mocked_request_exception(urlopen, Request, excp)
    call_command('mirrorcheck')
    mirrorlog = MirrorLog.objects.first()
    assert 'certificate error' in mirrorlog.error
    assert not mirrorlog.is_success