docstr: target: test create same collection name in different db
  method: 1. create a db and create 1 collection in db
          2. create the collection in another db
  expected: exception
docstr_tok: ["target",":","test","create","same","collection","name","in","different","db","method",":","1.","create","a","db","and","create","1","collection","in","db","2.","create","the","collection","in","another","db","expected",":","exception"]
code: def test_rename_existed_collection_name_new_db(self):
      """
      target: test create same collection name in different db
      method: 1. create a db and create 1 collection in db
              2. create the collection in another db
      expected: exception
      """
      # check default db is empty
      self._connect()
      assert self.utility_wrap.list_collections()[0] == []
  
      # create a collection in default db
      c_name1 = "collection_1"
      self.init_collection_wrap(c_name1)
      assert self.utility_wrap.list_collections()[0] == [c_name1]
  
      # 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 a collection in new db
      c_name2 = "collection_2"
      self.init_collection_wrap(c_name2)
      assert self.utility_wrap.list_collections()[0] == [c_name2]
  
      # rename the collection and move it to default db
      error = {
          ct.err_code: 65535,
          ct.err_msg: "duplicated new collection name default:collection_1 "
          "with other collection name or alias",
      }
      self.utility_wrap.rename_collection(
          c_name2,
          c_name1,
          "default",
          check_task=CheckTasks.err_res,
          check_items=error,
      )
  
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 14 for calling the TestDatabaseOperation obj's underlying member method code with example usage: obj.test_rename_existed_collection_name_new_db() without return types