class_docstr: Call to methods wrapped with `mongodb_exception_wrapper()`.
class_docstr_tok: ["Call","to","methods","wrapped","with","`","mongodb_exception_wrapper","(",")","`","."]
docstr: Should raise OperationFailure.
  
  This is because _id inside exp_config[0][0] cannot be set. It is an
  immutable key of the collection.
docstr_tok: ["Should","raise","OperationFailure",".","This","is","because","_id","inside","exp_config","[","0","]","[","0","]","can","not","be","set",".","It","is","an","immutable","key","of","the","collection","."]
code: def test_non_converted_errors(self, orion_db, test_collection):
      """Should raise OperationFailure.
  
      This is because _id inside exp_config[0][0] cannot be set. It is an
      immutable key of the collection.
  
      """
      config_to_add = test_collection[0]
  
      query = {"_id": test_collection[1]["_id"]}
  
      with pytest.raises(pymongo.errors.OperationFailure):
          orion_db.read_and_write(
              "test_collection", query, config_to_add
          )
  
imports: import functools
  from timeit import timeit
  import pymongo
  import pytest
  from pymongo import MongoClient
  from orion.core.io.database import Database, DatabaseError, DuplicateKeyError
  from orion.core.io.database.mongodb import AUTH_FAILED_MESSAGES, MongoDB
  from .conftest import insert_test_collection
  from .test_database import get_db
label_desc: Use image node_id 3 for calling the TestExceptionWrapper obj's underlying member method code with example usage: obj.test_non_converted_errors(orion_db, test_collection) without return types