docstr: target: test create collection in db and collection name same sa db name
  method: 1.create a db
          2.create collection in the db and collection name same as db name
  expected: no error
docstr_tok: ["target",":","test","create","collection","in","db","and","collection","name","same","sa","db","name","method",":","1.create","a","db","2.create","collection","in","the","db","and","collection","name","same","as","db","name","expected",":","no","error"]
code: def test_create_collection_name_same_db(self):
      """
      target: test create collection in db and collection name same sa db name
      method: 1.create a db
              2.create collection in the db and collection name same as db name
      expected: no error
      """
      self._connect()
      coll_db_name = cf.gen_unique_str(prefix)
      self.database_wrap.create_database(coll_db_name)
  
      self.database_wrap.using_database(coll_db_name)
  
      collection_w = self.init_collection_wrap(name=coll_db_name)
  
      collection_w.insert(cf.gen_default_dataframe_data())
      assert collection_w.num_entities == ct.default_nb
  
      colls, _ = self.utility_wrap.list_collections()
      assert coll_db_name in colls
  
      self.database_wrap.using_database(ct.default_db)
      coll_default, _ = self.utility_wrap.list_collections()
      assert coll_db_name not in coll_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 6 for calling the TestDatabaseOperation obj's underlying member method code with example usage: obj.test_create_collection_name_same_db() without return types