code: def test_include_pattern(self):
      # return False if no match
      file_list = FileList()
      file_list.set_allfiles([])
      self.assertFalse(file_list.include_pattern("*.py"))
  
      # return True if files match
      file_list = FileList()
      file_list.set_allfiles(["a.py", "b.txt"])
      self.assertTrue(file_list.include_pattern("*.py"))
  
      # test * matches all files
      file_list = FileList()
      self.assertIsNone(file_list.allfiles)
      file_list.set_allfiles(["a.py", "b.txt"])
      file_list.include_pattern("*")
      self.assertEqual(file_list.allfiles, ["a.py", "b.txt"])
  
imports: import os
  import re
  import unittest
  from distutils import debug
  from distutils.log import WARN
  from distutils.errors import DistutilsTemplateError
  from distutils.filelist import glob_to_re, translate_pattern, FileList
  from test.test_support import captured_stdout, run_unittest
  from distutils.tests import support
label_desc: Use image node_id 10 for calling the FileListTestCase obj's underlying member method code with example usage: obj.test_include_pattern() without return types