code: def test_create_pool_name_too_long(self):
      long_name = "".join(random.choices(string.ascii_lowercase, k=300))
      column_length = models.Pool.pool.property.columns[0].type.length
      with pytest.raises(
          AirflowBadRequest,
          match=f"^Pool name can't be more than {column_length} characters$",
      ):
          pool_api.create_pool(
              name=long_name,
              slots=5,
              description="",
          )
  
imports: from __future__ import annotations
  import random
  import string
  import pytest
  from airflow import models
  from airflow.api.common.experimental import pool
  from airflow.exceptions import AirflowBadRequest, PoolNotFound
  from airflow.models.pool import Pool
  from airflow.utils.session import create_session
  from tests.test_utils.db import clear_db_pools
label_desc: Use image node_id 9 for calling the TestPool obj's underlying member method code with example usage: obj.test_create_pool_name_too_long() without return types