示例#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)
示例#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)
示例#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)
示例#4
0
文件: List_t.py 项目: giffels/DBS
 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)
示例#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)
示例#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)
示例#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)
示例#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)
示例#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)
示例#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))
示例#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)
示例#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)
示例#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)
示例#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)
示例#15
0
文件: List_t.py 项目: bbockelm/DBS-1
 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)
示例#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)
示例#17
0
文件: List_t.py 项目: giffels/DBS
 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)
示例#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)
示例#19
0
文件: List_t.py 项目: giffels/DBS
 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)
示例#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))
示例#21
0
文件: List_t.py 项目: bbockelm/DBS-1
 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))
示例#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)
示例#23
0
文件: List_t.py 项目: giffels/DBS
 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)
示例#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)
示例#25
0
文件: List_t.py 项目: bbockelm/DBS-1
 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)
示例#26
0
文件: List_t.py 项目: bbockelm/DBS-1
 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)
示例#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)
示例#28
0
文件: List_t.py 项目: bbockelm/DBS-1
 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)
示例#29
0
文件: List_t.py 项目: bbockelm/DBS-1
 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))
示例#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)
示例#31
0
文件: List_t.py 项目: bbockelm/DBS-1
 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)
示例#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)
示例#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))
示例#34
0
文件: List_t.py 项目: giffels/DBS
 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)
示例#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)