Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
    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)
Beispiel #4
0
 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)
Beispiel #5
0
 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)
Beispiel #6
0
    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)
Beispiel #7
0
    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)
Beispiel #8
0
    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)
Beispiel #9
0
 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)
Beispiel #10
0
 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))
Beispiel #11
0
 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)
Beispiel #12
0
 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)
Beispiel #13
0
 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)
Beispiel #14
0
 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)
Beispiel #15
0
 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)
Beispiel #16
0
 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)
Beispiel #17
0
 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)
Beispiel #18
0
 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)
Beispiel #19
0
 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)
Beispiel #20
0
 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))
Beispiel #21
0
 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))
Beispiel #22
0
 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)
Beispiel #23
0
 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)
Beispiel #24
0
 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)
Beispiel #25
0
 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)
Beispiel #26
0
 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)
Beispiel #27
0
 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)
Beispiel #28
0
 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)
Beispiel #29
0
 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))
Beispiel #30
0
 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)
Beispiel #31
0
 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)
Beispiel #32
0
 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)
Beispiel #33
0
 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))
Beispiel #34
0
 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)
Beispiel #35
0
 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)