#NEWLINE# def testAttributes( self ) : #NEWLINE# #INDENT# g = GafferScene . Grid ( ) #NEWLINE# a = g [ 'out' ] . attributes ( '/grid' ) #NEWLINE# self . assertEqual ( a [ 'gl:surface' ] , IECore . Shader ( 'Constant' , 'gl:surface' , { #NEWLINE# #INDENT# 'Cs' : IECore . Color3f ( 1 ) , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# g [ 'centerPixelWidth' ] . setValue ( 2 ) #NEWLINE# a2 = g [ 'out' ] . attributes ( '/grid/centerLines' ) #NEWLINE# self . assertEqual ( a2 , IECore . CompoundObject ( { #NEWLINE# #INDENT# 'gl:curvesPrimitive:glLineWidth' : IECore . FloatData ( 2 ) , #NEWLINE# #UNINDENT# } ) )