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)
33 '/eos/cms/store/cmst3/user/cbern',
35 self.assertEqual(len(ds1.listOfGoodFiles()), 10)
38 self.assertRaises( ValueError,
40 'not_existing_basedir',
41 'not_exiting_dataset',
47 if __name__ ==
'__main__':
50 if not os.environ.get(
'CMSSW_BASE',
False):