#NEWLINE# def testVistrailvars( self ) : #NEWLINE# #INDENT# 'test translating vistrail variables from 1.0.2 to 1.0.3' #NEWLINE# from vistrails.db.services.io import open_bundle_from_zip_xml #NEWLINE# from vistrails.core.system import vistrails_root_directory #NEWLINE# import os #NEWLINE# ( save_bundle , vt_save_dir ) = open_bundle_from_zip_xml ( DBVistrail . vtType , os . path . join ( vistrails_root_directory ( ) , 'tests/resources/visvar-1.0.2.vt' ) ) #NEWLINE# vistrail = translateVistrail ( save_bundle . vistrail ) #NEWLINE# visvars = vistrail . db_vistrailVariables #NEWLINE# self . assertEqual ( len ( visvars ) , 2 ) #NEWLINE# self . assertNotEqual ( vistrail [ 0 ] . db_name , visvars [ 1 ] . db_name )