class_docstr: Calls :meth:`orion.core.io.database.AbstractDB.drop_index`.
class_docstr_tok: ["Calls",":","meth",":","`","orion.core.io.database.AbstractDB.drop_index","`","."]
docstr: Test with single and compound indexes.
docstr_tok: ["Test","with","single","and","compound","indexes","."]
code: def test_drop_ordered_index(self, orion_db, db_test_data):
      """Test with single and compound indexes."""
      (
          keys_1,
          keys_2,
          stored_keys_1,
          stored_keys_2,
          index_information_initial,
          index_information_wo_1,
      ) = db_test_data
      orion_db.ensure_index("experiments", keys_1)
      orion_db.ensure_index("experiments", keys_2)
      assert (
          orion_db.index_information("experiments")
          == index_information_initial
      )
      orion_db.drop_index("experiments", stored_keys_1)
      assert (
          orion_db.index_information("experiments")
          == index_information_wo_1
      )
      with pytest.raises(DatabaseError) as exc:
          orion_db.drop_index("experiments", stored_keys_1)
      assert "index not found with name" in str(exc.value)
      orion_db.drop_index("experiments", stored_keys_2)
      assert orion_db.index_information("experiments") == {"_id_": True}
  
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 1 for calling the TestDropIndex obj's underlying member method code with example usage: obj.test_drop_ordered_index(orion_db, db_test_data) without return types