def METHOD_NAME(self):
    with captured_stdout() as s:
        filelist = list(grep.findfiles('invaliddir', '*.*', False))
    self.assertEqual(filelist, [])
    self.assertIn('invalid', s.getvalue())