#NEWLINE# def test1( self ) : #NEWLINE# #INDENT# 'Exercises aliasing on modules' #NEWLINE# import vistrails.core.system #NEWLINE# from vistrails.core.db.locator import XMLFileLocator #NEWLINE# v = XMLFileLocator ( ( vistrails . core . system . vistrails_root_directory ( ) + '/tests/resources/dummy.xml' ) ) . load ( ) #NEWLINE# p1 = v . getPipeline ( 'final' ) #NEWLINE# p2 = v . getPipeline ( 'final' ) #NEWLINE# self . assertEquals ( len ( p1 . modules ) , len ( p2 . modules ) ) #NEWLINE# for k in p1 . modules . keys ( ) : #NEWLINE# #INDENT# if ( self . modules [ k ] is p2 . modules [ k ] ) : #NEWLINE# #INDENT# self . fail ( "didn't expect aliases in two different pipelines" )