def test_list_files(self): '''Default file listing''' # TODO: Flesh me out! expected = [ 'data/test-data/tumblr_m0byyulRLo1qc5ep4o1_500.jpg', 'data/test-data/randomcrap.txt', 'data/test-data/CV_rGaziano_dev_2012.pdf' ] expected = [os.path.abspath(p) for p in expected] res = list(list_files(self.root_dir)) self.assertListEqual(expected, res)
def _match(self, pattern=None): '''Helper''' return list(list_files(self.root_dir, recursive=True, abspathes=False, pattern=pattern) )