class_docstr: Test that the .airflowignore work and whether the file is properly ignored.
docstr: Test that the .airflowignore glob syntax works and whether the files are properly ignored.
code: def test_find_not_should_ignore_path_glob(self, tmp_path):
      """
      Test that the .airflowignore glob syntax works and whether the files are properly ignored.
      """
      plugin_folder_path = populate_dir(tmp_path)
  
      detected_files = set()
      should_ignore_files = {
          "test_notload.py",
          "test_notload_sub.py",
          "test_noneload_sub1.py",
          "test_shouldignore.py",
      }
      should_not_ignore_files = {
          "test_load.py",
          "test_load_sub1.py",
      }
      ignore_list_file = ".airflowignore_glob"
      for file_path in find_path_from_directory(
          plugin_folder_path, ignore_list_file, "glob"
      ):
          file_path = Path(file_path)
          if file_path.is_file() and file_path.suffix == ".py":
              detected_files.add(file_path.name)
      assert detected_files == should_not_ignore_files
      assert detected_files.isdisjoint(should_ignore_files)
  
file_path: airflow/tests/plugins/test_plugin_ignore.py
imports: from __future__ import annotations
  from pathlib import Path
  from unittest.mock import patch
  from airflow import settings
  from airflow.utils.file import find_path_from_directory
label_desc: Use image node_id 2 for calling the TestIgnorePluginFile obj's underlying member method code with example usage: obj.test_find_not_should_ignore_path_glob(tmp_path) without return types