10 if not os.path.isdir(basedir):
14 if os.path.isdir(name):
18 for i
in range(number_of_files):
19 os.system(
'touch file_{i:d}.root'.
format(i=i))
28 self.assertEqual( len(ds1.listOfGoodFiles()), n_files)
32 ds1 =
EOSDataset(
'/eos/cms/store/cmst3/user/cbern/EOSTests/ds1',
34 self.assertEqual(len(ds1.listOfGoodFiles()), 10)
37 self.assertRaises( ValueError,
38 EOSDataset,
'not_existing_path',
'.*root')
43 if __name__ ==
'__main__':
46 if not os.environ.get(
'CMSSW_BASE',
False):