#NEWLINE# def test_do_change( self ) : #NEWLINE# #INDENT# 'Test if VTK object changes when trait is changed.' #NEWLINE# p = Prop ( ) #NEWLINE# p . edge_visibility = ( not p . edge_visibility ) #NEWLINE# p . representation = 'p' #NEWLINE# p . opacity = 0.5 #NEWLINE# p . color = ( 0 , 1 , 0 ) #NEWLINE# p . diffuse_color = ( 1 , 1 , 1 ) #NEWLINE# p . specular_color = ( 1 , 1 , 0 ) #NEWLINE# for ( t , g ) in p . _updateable_traits_ : #NEWLINE# #INDENT# val = getattr ( p . _vtk_obj , g ) ( ) #NEWLINE# if ( t == 'representation' ) : #NEWLINE# #INDENT# self . assertEqual ( val , getattr ( p , ( t + '_' ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertEqual ( val , getattr ( val , t ) )