def METHOD_NAME(
        my_exists: mock.MagicMock,  # pylint: disable=unused-argument
        data_dir: Path,
        function_scope_messages_aggregator: MessagesAggregator,
        sql_vm_instructions_cb: int,
):
    not_allowed_dir = data_dir / 'notallowed'
    os.mkdir(not_allowed_dir)
    handler = DataHandler(
        data_directory=not_allowed_dir,
        msg_aggregator=function_scope_messages_aggregator,
        sql_vm_instructions_cb=sql_vm_instructions_cb,
    )
    with pytest.raises(SystemPermissionError):
        handler.unlock(
            username='someuser',
            password='123',
            create_new=True,
            resume_from_backup=False,
        )