class_docstr: Negative test cases of alias interface operations
class_docstr_tok: ["Negative","test","cases","of","alias","interface","operations"]
docstr: target: test creating a collection with a same name as alias, but a different schema
  method:
          1.create a collection with alias
          2.create a collection with same name as alias, but a different schema
  expected: in step 2, create collection failed
docstr_tok: ["target",":","test","creating","a","collection","with","a","same","name","as","alias",",","but","a","different","schema","method",":","1.create","a","collection","with","alias","2.create","a","collection","with","same","name","as","alias",",","but","a","different","schema","expected",":","in","step","2",",","create","collection","failed"]
code: def test_alias_create_dup_name_collection(self):
      """
      target: test creating a collection with a same name as alias, but a different schema
      method:
              1.create a collection with alias
              2.create a collection with same name as alias, but a different schema
      expected: in step 2, create collection failed
      """
      self._connect()
      c_name = cf.gen_unique_str("collection")
      collection_w = self.init_collection_wrap(
          name=c_name,
          schema=default_schema,
          check_task=CheckTasks.check_collection_property,
          check_items={exp_name: c_name, exp_schema: default_schema},
      )
      alias_name = cf.gen_unique_str(prefix)
      self.utility_wrap.create_alias(collection_w.name, alias_name)
      # collection_w.create_alias(alias_name)
  
      error = {
          ct.err_code: 0,
          ct.err_msg: "The collection already exist, but the schema is not the same as the schema passed in",
      }
      self.init_collection_wrap(
          alias_name,
          schema=default_binary_schema,
          check_task=CheckTasks.err_res,
          check_items=error,
      )
  
imports: import pytest
  import random
  from base.client_base import TestcaseBase
  from utils.util_log import test_log
  from common import common_func
  from common import common_type
  from common.common_type import CaseLabel, CheckTasks
label_desc: Use image node_id 5 for calling the TestAliasOperationInvalid obj's underlying member method code with example usage: obj.test_alias_create_dup_name_collection() without return types