#NEWLINE# def test_auto_update( self ) : #NEWLINE# #INDENT# 'Test trait updation when the VTK object changes.' #NEWLINE# p = Prop ( ) #NEWLINE# obj = p . _vtk_obj #NEWLINE# obj . SetEdgeVisibility ( 1 ) #NEWLINE# self . assertEqual ( p . edge_visibility , 1 ) #NEWLINE# obj . SetOpacity ( 0.5 ) #NEWLINE# self . assertEqual ( p . opacity , 0.5 ) #NEWLINE# obj . SetRepresentationToPoints ( ) #NEWLINE# self . assertEqual ( p . representation , 'points' ) #NEWLINE# val = ( 1.0 , 1.0 , 0.0 ) #NEWLINE# obj . SetColor ( val ) #NEWLINE# self . assertEqual ( p . color , val ) #NEWLINE# val = ( 1.0 , 0.0 , 0.0 ) #NEWLINE# obj . SetDiffuseColor ( val ) #NEWLINE# self . assertEqual ( p . diffuse_color , val ) #NEWLINE# val = ( 0.0 , 1.0 , 0.0 ) #NEWLINE# obj . SetSpecularColor ( val ) #NEWLINE# self . assertEqual ( obj . specular_color , val )