Пример #1
0
  def test_03_replicationTree( self ):
    """ test replication tree """
    sHandler = StrategyHandler( self.configPath, self.bands, self.channels, self.failedFiles )

    tree = sHandler.replicationTree( ["CERN-USER", "CNAF-USER"], ["PIC-USER", "RAL-USER"], 1000L, "MinimiseTotalWait" )
    self.assertEqual( tree["OK"], True )
    tree = tree["Value"]
    self.assertEqual( tree, { 48L: {'Ancestor': 14L, 'Strategy': 'MinimiseTotalWait', 'DestSE': 'PIC-USER', 'SourceSE': 'RAL-USER'},
                              14L: {'Ancestor': False, 'Strategy': 'MinimiseTotalWait', 'DestSE': 'RAL-USER', 'SourceSE': 'CNAF-USER'}})