def METHOD_NAME(run_cli_command, monkeypatch):
    """Test `verdi status` when the storage is found to be corrupt (e.g. non-matching repository UUIDs)."""
    def storage_cls(*args, **kwargs):  # pylint: disable=unused-argument
        from aiida.common.exceptions import CorruptStorage
        raise CorruptStorage()
    monkeypatch.setattr(migrator.PsqlDosMigrator, 'validate_storage', storage_cls)
    result = run_cli_command(cmd_status.verdi_status, raises=True, use_subprocess=False)
    assert 'Storage is corrupted' in result.output
    assert result.exit_code is ExitCode.CRITICAL