docstr: target: test rename collection in new created db
  method: 1. create a db and create 1 collection in db
          2. rename the collection
  expected: exception
docstr_tok: ["target",":","test","rename","collection","in","new","created","db","method",":","1.","create","a","db","and","create","1","collection","in","db","2.","rename","the","collection","expected",":","exception"]
code: def test_rename_collection_in_new_db(self):
      """
      target: test rename collection in new created db
      method: 1. create a db and create 1 collection in db
              2. rename the collection
      expected: exception
      """
      self._connect()
      # check default db is empty
      assert self.utility_wrap.list_collections()[0] == []
  
      # create a new database
      db_name = cf.gen_unique_str("db")
      self.database_wrap.create_database(db_name)
      self.database_wrap.using_database(db_name)
  
      # create 1 collection in new db
      old_name = "old_collection"
      self.init_collection_wrap(old_name)
      assert self.utility_wrap.list_collections()[0] == [old_name]
  
      # rename the collection
      new_name = "new_collection"
      self.utility_wrap.rename_collection(old_name, new_name)
  
      # check the collection still in new db
      assert self.utility_wrap.list_collections()[0] == [new_name]
  
      # check the collection not in default db
      self.database_wrap.using_database("default")
      assert self.utility_wrap.list_collections()[0] == []
  
imports: import pandas
  import pytest
  from base.client_base import TestcaseBase
  from common.common_type import CheckTasks, CaseLabel
  from common import common_func
  from common import common_type
  from utils.util_log import test_log
label_desc: Use image node_id 15 for calling the TestDatabaseOperation obj's underlying member method code with example usage: obj.test_rename_collection_in_new_db() without return types