class_docstr: Test coherence of read-only database and its wrapped database.
docstr: Test attributes are coherent from view and wrapped database.
code: def test_valid_attributes(self, storage):
      """Test attributes are coherent from view and wrapped database."""
      database = storage._db
      readonly_database = ReadOnlyDB(database)
  
      assert readonly_database.host == database.host
      assert readonly_database.port == database.port
  
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 1 for calling the TestReadOnlyDatabase obj's underlying member method code with example usage: obj.test_valid_attributes(storage) without return types