class_docstr: test other interface that has db_name params
class_docstr_tok: ["test","other","interface","that","has","db_name","params"]
docstr: target: test connect with db
  method: 1.create db and create collection in db
          2.disconnect and connect with db
          3.list collections
  expected: verify connect db is the using db
docstr_tok: ["target",":","test","connect","with","db","method",":","1.create","db","and","create","collection","in","db","2.disconnect","and","connect","with","db","3.list","collections","expected",":","verify","connect","db","is","the","using","db"]
code: def test_connect_db(self, host, port):
      """
      target: test connect with db
      method: 1.create db and create collection in db
              2.disconnect and connect with db
              3.list collections
      expected: verify connect db is the using db
      """
      # create db
      self._connect()
      db_name = cf.gen_unique_str(prefix)
      self.database_wrap.create_database(db_name)
  
      # create collection
      self.database_wrap.using_database(db_name)
      collection_w = self.init_collection_wrap(
          name=cf.gen_unique_str(prefix)
      )
  
      # re-connect with db name
      self.connection_wrap.disconnect(ct.default_alias)
      self.connection_wrap.connect(
          host=host,
          port=port,
          db_name=db_name,
          user=ct.default_user,
          password=ct.default_password,
          secure=cf.param_info.param_secure,
      )
  
      # verify connect db_name is the specify db
      collections_db, _ = self.utility_wrap.list_collections()
      assert collection_w.name in collections_db
  
      # verify db's collection not in default db
      self.connection_wrap.disconnect(ct.default_alias)
      self.connection_wrap.connect(
          host=host,
          port=port,
          db_name=ct.default_db,
          user=ct.default_user,
          password=ct.default_password,
          secure=cf.param_info.param_secure,
      )
  
      collections_default, _ = self.utility_wrap.list_collections()
      assert collection_w.name not in collections_default
  
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 5 for calling the TestDatabaseOtherApi obj's underlying member method code with example usage: obj.test_connect_db(host, port) without return types