code: def test_base(self):
      ff = grep.findfiles
      readme = os.path.join(self.path, "README.txt")
  
      # Check for Python files in path where this file lives.
      filelist = list(ff(self.path, "*.py", False))
      # This directory has many Python files.
      self.assertGreater(len(filelist), 10)
      self.assertIn(self.realpath, filelist)
      self.assertNotIn(readme, filelist)
  
      # Look for .txt files in path where this file lives.
      filelist = list(ff(self.path, "*.txt", False))
      self.assertNotEqual(len(filelist), 0)
      self.assertNotIn(self.realpath, filelist)
      self.assertIn(readme, filelist)
  
      # Look for non-matching pattern.
      filelist = list(ff(self.path, "grep.*", False))
      self.assertEqual(len(filelist), 0)
      self.assertNotIn(self.realpath, filelist)
  
imports: from idlelib import grep
  import unittest
  from test.support import captured_stdout
  from idlelib.idle_test.mock_tk import Var
  import os
  import re
label_desc: Use image node_id 5 for calling the FindfilesTest obj's underlying member method code with example usage: obj.test_base() without return types