コード例 #1
0
ファイル: Test_PathFinder.py プロジェクト: DIRACGrid/DIRAC
 def test_sucessComponentStringDoesNotExist( self ):
   """ tricky case one could expect that if entity string is wrong
       than some kind of error will be returned, but it is not the case
   """
   result = getComponentSection('WorkloadManagement/SimpleLogConsumer',False, False,'NonRonsumersNon')
   correctResult = '/Systems/WorkloadManagement/' + self.wm + '/NonRonsumersNon/SimpleLogConsumer'
   self.assertEqual(result, correctResult)
コード例 #2
0
 def test_sucessComponentStringDoesNotExist(self):
     """ tricky case one could expect that if entity string is wrong
     than some kind of error will be returned, but it is not the case
 """
     result = getComponentSection('WorkloadManagement/SimpleLogConsumer',
                                  False, False, 'NonRonsumersNon')
     correctResult = '/Systems/WorkloadManagement/' + self.wm + '/NonRonsumersNon/SimpleLogConsumer'
     self.assertEqual(result, correctResult)
コード例 #3
0
 def test_success(self):
     result = getComponentSection('WorkloadManagement/SandboxStoreHandler',
                                  False, False, 'Services')
     correctResult = '/Systems/WorkloadManagement/' + self.wm + '/Services/SandboxStoreHandler'
     self.assertEqual(result, correctResult)
コード例 #4
0
ファイル: Test_PathFinder.py プロジェクト: DIRACGrid/DIRAC
 def test_success( self ):
   result = getComponentSection('WorkloadManagement/SandboxStoreHandler',False, False,'Services')
   correctResult = '/Systems/WorkloadManagement/' + self.wm + '/Services/SandboxStoreHandler'
   self.assertEqual(result, correctResult)