1 from __future__
import absolute_import
2 from builtins
import range
12 if not os.path.isdir(basedir):
16 if os.path.isdir(name):
20 for i
in range(number_of_files):
21 os.system(
'touch file_{i:d}.root'.
format(i=i))
30 self.assertEqual( len(ds1.listOfGoodFiles()), n_files)
35 '/eos/cms/store/cmst3/user/cbern',
37 self.assertEqual(len(ds1.listOfGoodFiles()), 10)
40 self.assertRaises( ValueError,
42 'not_existing_basedir',
43 'not_exiting_dataset',
49 if __name__ ==
'__main__':
52 if not os.environ.get(
'CMSSW_BASE',
False):
def create_dataset(name, number_of_files, basedir=BASE_DIR)