#NEWLINE# def testBoxNodulePositions( self ) : #NEWLINE# #INDENT# s = Gaffer . ScriptNode ( ) #NEWLINE# g = GafferUI . GraphGadget ( s ) #NEWLINE# s [ 'p' ] = GafferScene . Plane ( ) #NEWLINE# s [ 's' ] = GafferSceneTest . TestShader ( ) #NEWLINE# s [ 'a' ] = GafferScene . ShaderAssignment ( ) #NEWLINE# s [ 'a' ] [ 'in' ] . setInput ( s [ 'p' ] [ 'out' ] ) #NEWLINE# s [ 'a' ] [ 'shader' ] . setInput ( s [ 's' ] [ 'out' ] ) #NEWLINE# box = Gaffer . Box . create ( s , Gaffer . StandardSet ( [ s [ 'a' ] ] ) ) #NEWLINE# boxGadget = g . nodeGadget ( box ) #NEWLINE# self . assertEqual ( boxGadget . noduleTangent ( boxGadget . nodule ( box [ 'in' ] ) ) , IECore . V3f ( 0 , 1 , 0 ) ) #NEWLINE# self . assertEqual ( boxGadget . noduleTangent ( boxGadget . nodule ( box [ 'shader' ] ) ) , IECore . V3f ( ( - 1 ) , 0 , 0 ) )