class_docstr: Test coherence of read-only database and its wrapped database.
docstr: Test read is coherent from view and wrapped database.
code: def test_read(self, hacked_exp):
      """Test read is coherent from view and wrapped database."""
      database = setup_storage()._db
      readonly_database = ReadOnlyDB(database)
  
      args = {
          "collection_name": "experiments",
          "query": {"name": "supernaedo2-dendi"},
      }
      readonly_result = readonly_database.read(**args)
      result = database.read(**args)
  
      assert len(result) > 0  # Otherwise the test is pointless
      assert readonly_result == result
  
file_path: orion/tests/unittests/core/io/database_test.py
imports: import pytest
  from orion.core.io.database import ReadOnlyDB, database_factory
  from orion.storage.base import setup_storage
label_desc: Use image node_id 2 for calling the TestReadOnlyDatabase obj's underlying member method code with example usage: obj.test_read(hacked_exp) without return types