class_docstr: Test cases of alias interface operations
class_docstr_tok: ["Test","cases","of","alias","interface","operations"]
docstr: target: test utility has partition by alias
  method: 
         1.create collection with partition and alias
         2.call has_partition function with alias as param
  expected: result is True
docstr_tok: ["target",":","test","utility","has","partition","by","alias","method",":","1.create","collection","with","partition","and","alias","2.call","has_partition","function","with","alias","as","param","expected",":","result","is","True"]
code: def test_alias_called_by_utility_has_partition(self):
      """
      target: test utility has partition by alias
      method:
             1.create collection with partition and alias
             2.call has_partition function with alias as param
      expected: result is True
      """
      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},
      )
      partition_name = cf.gen_unique_str("partition")
      self.init_partition_wrap(collection_w, partition_name)
  
      alias_name = cf.gen_unique_str(prefix)
      self.utility_wrap.create_alias(collection_w.name, alias_name)
      # collection_w.create_alias(alias_name)
      collection_alias, _ = self.collection_wrap.init_collection(
          name=alias_name,
          check_task=CheckTasks.check_collection_property,
          check_items={
              exp_name: alias_name,
              exp_schema: default_schema,
          },
      )
      res, _ = self.utility_wrap.has_partition(
          alias_name, partition_name
      )
  
      assert res is True
  
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 7 for calling the TestAliasOperation obj's underlying member method code with example usage: obj.test_alias_called_by_utility_has_partition() without return types