class_docstr: Test index for :meth:`orion.core.io.database.ephemeraldb.EphemeralCollection`.
docstr: Test if new index added property.
docstr_tok: ["Test","if","new","index","added","property","."]
code: def test_create_index(self, collection):
      """Test if new index added property."""
      collection.create_index("hello")
      assert collection._indexes == {"_id_": (("_id",), {(1,)})}
  
      collection.create_index("hello", unique=True)
      assert collection._indexes == {
          "_id_": (("_id",), {(1,)}),
          "hello_1": (("hello",), {("there",)}),
      }
  
imports: import pytest
  from orion.core.io.database import Database
  from orion.core.io.database.ephemeraldb import EphemeralCollection, EphemeralDB, EphemeralDocument
label_desc: Use image node_id 1 for calling the TestIndex obj's underlying member method code with example usage: obj.test_create_index(collection) without return types