#NEWLINE# def test_load( self ) : #NEWLINE# #INDENT# dist = working_set . find ( Requirement . parse ( 'openmdao.test' ) ) #NEWLINE# fact = PkgResourcesFactory ( [ 'openmdao.component' ] , None ) #NEWLINE# comp = fact . create ( 'openmdao.test.execcomp.ExecComp' , exprs = [ 'x = a+1' , 'y=b-2' , 'z=x*2' ] ) #NEWLINE# comp . a = 4 #NEWLINE# comp . b = 2 #NEWLINE# comp . run ( ) #NEWLINE# self . assertEqual ( fact . x , 5 ) #NEWLINE# self . assertEqual ( comp . y , 0 ) #NEWLINE# self . assertEqual ( comp . z , 10 )