def test02(self): """dao.Oracle.Dataset.List: Basic""" r = self.dao.execute(self.conn, dataset=self.data[0]['dataset']) result = [] for item in r: result.append(item) self.assertEqual(strip_volatile_fields(result), self.data)
def test03(self): """dao.Oracle.File.List: Basic""" result = [] r = self.dao.execute(self.conn, logical_file_name=self.data[0]["logical_file_name"]) for item in r: result.append(item) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.Block.List: Basic""" r = self.dao.execute(self.conn, block_name=self.data[0]['block_name']) result = [] for item in r: result.append(item) self.assertEqual(strip_volatile_fields(result), self.data)
def test01(self): """dao.Oracle.FileParent.List: Basic""" result = self.dao.execute( self.conn, logical_file_name=self.data[0]['this_logical_file_name']) self.assertTrue(type(result) == list) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.FileLumi.List: Basic""" result = self.dao.execute(self.conn, block_name=self.block_data[0]['block_name']) self.assertTrue(type(result) == GeneratorType) l =[] for i in result: l.append(i) self.assertEqual(strip_volatile_fields(l), self.lumi_data)
def test01(self): """dao.Oracle.FileParent.List: Basic""" result = self.dao.execute(self.conn, logical_file_name=self.data[0]['this_logical_file_name']) self.assertTrue(type(result) == GeneratorType) l = [] for item in result: l.append(item) self.assertEqual(strip_volatile_fields(l), self.data)
def test01(self): """dao.Oracle.Block.List: Basic""" block_name = self.data[0]['block_name'] dataset_name = block_name.split("#")[0] r = self.dao.execute(self.conn, dataset=dataset_name) result = [] for item in r: result.append(item) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.FileLumi.List: Basic""" result = self.dao.execute(self.conn, block_name=self.block_data[0]['block_name']) self.assertTrue(type(result) == GeneratorType) l = [] for i in result: l.append(i) self.assertEqual(strip_volatile_fields(l), self.lumi_data)
def test06(self): """dao.Oracle.OutputModuleConfig.List: Basic""" result = self.dao.execute(self.conn, app = self.data[0]['app_name']) self.assertTrue(self.data[0] in strip_volatile_fields(result))
def test05(self): """dao.Oracle.OutputModuleConfig.List: Basic""" result = self.dao.execute(self.conn, pset_hash = self.data[0]['pset_hash']) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.OutputModuleConfig.List: Basic""" result = self.dao.execute(self.conn, release_version = self.data[0]['release_version']) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.FileLumi.List: Basic""" result = self.dao.execute(self.conn, block_name=self.block_data[0]['block_name']) self.assertTrue(type(result) == list) self.assertEqual(strip_volatile_fields(result), self.lumi_data)
def test02(self): """dao.Oracle.PrimaryDataset.List: Basic""" result = self.dao.execute(self.conn, primary_ds_name=self.data[0]['primary_ds_name']) self.assertEqual(strip_volatile_fields(result), self.data)
def test05(self): """dao.Oracle.OutputModuleConfig.List: Basic""" result = self.dao.execute(self.conn, pset_hash=self.data[0]['pset_hash']) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.AcquisitionEra.List: Basic""" result = self.dao.execute( self.conn, acquisitionEra=self.data[0]['acquisition_era_name']) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.Block.List: Basic""" result = self.dao.execute(self.conn, block_name=self.data[0]['block_name']) self.assertEqual(strip_volatile_fields(result), self.data)
def test01(self): """dao.Oracle.File.List: Basic""" result = self.dao.execute(self.conn, dataset=self.data[0]["dataset"]) self.assertEqual(strip_volatile_fields(result), self.data)
def test01(self): """dao.Oracle.Block.List: Basic""" block_name = self.data[0]['block_name'] dataset_name = block_name.split("#")[0] result = self.dao.execute(self.conn, dataset=dataset_name) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.AcquisitionEra.List: Basic""" result = self.dao.execute(self.conn, acquisitionEra=self.data[0]['acquisition_era_name']) self.assertEqual(strip_volatile_fields(result), strip_volatile_fields(self.data))
def test06(self): """dao.Oracle.OutputModuleConfig.List: Basic""" result = self.dao.execute(self.conn, app=self.data[0]['app_name']) self.assertTrue(self.data[0] in strip_volatile_fields(result))
def test07(self): """dao.Oracle.OutputModuleConfig.List: Basic""" result = self.dao.execute(self.conn, output_label = self.data[0]['output_module_label']) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.DataTier.List: Basic""" result = self.dao.execute(self.conn, data_tier_name=self.data[0]['data_tier_name']) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.OutputModuleConfig.List: Basic""" result = self.dao.execute( self.conn, release_version=self.data[0]['release_version']) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.PrimaryDataset.List: Basic""" result = self.dao.execute( self.conn, primary_ds_name=self.data[0]['primary_ds_name']) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.DataTier.List: Basic""" result = self.dao.execute( self.conn, data_tier_name=self.data[0]['data_tier_name']) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.ProcessingEra.List: Basic""" result = self.dao.execute( self.conn, processingV=self.data[0]['processing_version']) self.assertEqual(strip_volatile_fields(result), strip_volatile_fields(self.data))
def test02(self): """dao.Oracle.File.List: Basic""" result = self.dao.execute(self.conn, block_name=self.data[0]["block_name"]) self.assertEqual(strip_volatile_fields(result), self.data)
def test07(self): """dao.Oracle.OutputModuleConfig.List: Basic""" result = self.dao.execute( self.conn, output_label=self.data[0]['output_module_label']) self.assertEqual(strip_volatile_fields(result), self.data)
def test01(self): """dao.Oracle.DatasetParent.List: Basic""" result = self.dao.execute(self.conn, dataset=self.data[0]['this_dataset']) self.assertTrue(type(result) == list) self.assertEqual(strip_volatile_fields(result), self.data)
def test02(self): """dao.Oracle.ProcessingEra.List: Basic""" result = self.dao.execute(self.conn, processingV=self.data[0]['processing_version']) self.assertEqual(strip_volatile_fields(result), strip_volatile_fields(self.data))
def test03(self): """dao.Oracle.File.List: Basic""" result = self.dao.execute( self.conn, logical_file_name=self.data[0]["logical_file_name"]) self.assertEqual(strip_volatile_fields(result), self.data)
def test01(self): """dao.Oracle.FileParent.List: Basic""" result = self.dao.execute(self.conn, logical_file_name=self.data[0]['this_logical_file_name']) self.assertTrue(type(result) == list) self.assertEqual(strip_volatile_fields(result), self.data)