def test_found_all_tests(self): should_found = [ './file2.test', './file1.test', './third/file10.test', './third/file9.test', './second/file7.test', './second/file6.test', './first/file4.test', './first/file3.test' ] self.assertEqual(should_found, list(extra.find_files('.', '*.test')))
def test_nothing_found(self): self.assertEqual([], list(extra.find_files('.', '*.py')))
def build(self): for filename in find_files('src', '*.pyc'): os.unlink(filename) logger.debug('Deleted: %s' % (filename,))