#NEWLINE# def testEnabledException( self ) : #NEWLINE# #INDENT# s = Gaffer . ScriptNode ( ) #NEWLINE# s [ 'n' ] = GafferTest . AddNode ( ) #NEWLINE# s [ 'e' ] = Gaffer . Expression ( ) #NEWLINE# s [ 'e' ] . setExpression ( "parent['n']['enabled'] = undefinedVariable" ) #NEWLINE# g = GafferUI . GraphGadget ( s ) #NEWLINE# self . assertTrue ( ( g . nodeGadget ( s [ 'n' ] ) is not None ) )