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