CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
dataset_test.TestDataset Class Reference
Inheritance diagram for dataset_test.TestDataset:

Public Member Functions

def test_eos
 
def test_eos_fail
 
def test_local
 

Detailed Description

Definition at line 22 of file dataset_test.py.

Member Function Documentation

def dataset_test.TestDataset.test_eos (   self)

Definition at line 31 of file dataset_test.py.

31 
32  def test_eos(self):
33  ds1 = EOSDataset('/eos/cms/store/cmst3/user/cbern/EOSTests/ds1',
34  '.*root')
35  self.assertEqual(len(ds1.listOfGoodFiles()), 10)
def dataset_test.TestDataset.test_eos_fail (   self)

Definition at line 36 of file dataset_test.py.

36 
37  def test_eos_fail(self):
38  self.assertRaises( ValueError,
39  EOSDataset, 'not_existing_path', '.*root')
40  # should test that we fail when a plain file is provided
41  # instead ofa directory.. but eostools not set up for that yet.
42 
def dataset_test.TestDataset.test_local (   self)

Definition at line 24 of file dataset_test.py.

References dataset_test.create_dataset().

24 
25  def test_local(self):
26  n_files = 10
27  create_dataset('ds1', n_files)
28  ds1 = LocalDataset('/ds1', 'datasets', '.*root')
29  self.assertEqual( len(ds1.listOfGoodFiles()), n_files)
30  # shutil.rmtree('datasets')
def create_dataset
Definition: dataset_test.py:9