class_docstr: Calls to :meth:`orion.core.io.database.AbstractDB.read`.
docstr: Fetch a whole entries.
docstr_tok: ["Fetch","a","whole","entries","."]
code: def test_read_entries(self, orion_db, test_collection):
      """Fetch a whole entries."""
      loaded_config = orion_db.read(
          "test_collection", {"field1": "same1", "same_field": "same"}
      )
      assert loaded_config == [test_collection[0], test_collection[2]]
  
      loaded_config = orion_db.read(
          "test_collection",
          {"field1": "same1", "unique_field": "unique2"},
      )
      assert loaded_config == test_collection[2:]
      assert loaded_config[0]["_id"] == test_collection[2]["_id"]
  
imports: import pickle
  from datetime import datetime
  import pytest
  from orion.core.io.database import Database, DatabaseError, DuplicateKeyError
  from orion.core.io.database.ephemeraldb import EphemeralDB
  from orion.core.io.database.mongodb import MongoDB
  from orion.core.io.database.pickleddb import PickledDB
  from .conftest import insert_test_collection
label_desc: Use image node_id 1 for calling the TestRead obj's underlying member method code with example usage: obj.test_read_entries(orion_db, test_collection) without return types