def test_datafiles(): # Nose test generator # Creates a testcase for each datafile for filename in testdata.list_files(): yield check_datafile, filename