Exemple #1
0
    def testStdBaseIncludeParentsValidation(self):
        """
        _testStdBaseValidation_

        Check that the test arguments pass basic validation,
        i.e. no exception should be raised.
        """
        arguments = StdBase.getTestArguments()
        stdBaseInstance = StdBase()
        
        arguments["IncludeParents"] = True
        arguments["InputDataset"] = "/Cosmics/Commissioning2015-v1/RAW"
        self.assertRaises(WMSpecFactoryException, stdBaseInstance.factoryWorkloadConstruction, "TestWorkload", arguments)
        
        arguments["IncludeParents"] = True
        self.assertRaises(WMSpecFactoryException, stdBaseInstance.factoryWorkloadConstruction, "TestWorkload", arguments)
        
        arguments["IncludeParents"] = True
        arguments["InputDataset"] = "/Cosmics/Commissioning2015-6Mar2015-v1/RECO"
        stdBaseInstance.factoryWorkloadConstruction("TestWorkload", arguments)
        
        arguments["IncludeParents"] = False
        arguments["InputDataset"] = "/Cosmics/Commissioning2015-6Mar2015-v1/RECO"
        stdBaseInstance.factoryWorkloadConstruction("TestWorkload", arguments)
        
        arguments["IncludeParents"] = False
        arguments["InputDataset"] = "/Cosmics/ABS/RAW" 
        arguments["DbsUrl"] = None
        stdBaseInstance.factoryWorkloadConstruction("TestWorkload", arguments)
        return 
Exemple #2
0
    def testStdBaseValidation(self):
        """
        _testStdBaseValidation_

        Check that the test arguments pass basic validation,
        i.e. no exception should be raised.
        """
        arguments = StdBase.getTestArguments()
        for k in sorted(arguments.keys()):
            print(k, arguments[k])
        stdBaseInstance = StdBase()
        stdBaseInstance.factoryWorkloadConstruction("TestWorkload", arguments)
        return
Exemple #3
0
    def testStdBaseValidation(self):
        """
        _testStdBaseValidation_

        Check that the test arguments pass basic validation,
        i.e. no exception should be raised.
        """
        arguments = StdBase.getTestArguments()
        for k in sorted(arguments.keys()):
            print k, arguments[k]
        stdBaseInstance = StdBase()
        stdBaseInstance.factoryWorkloadConstruction("TestWorkload", arguments)
        return