#NEWLINE# def testDefaultNoduleTangents( self ) : #NEWLINE# #INDENT# s = Gaffer . ScriptNode ( ) #NEWLINE# s [ 'n' ] = GafferTest . AddNode ( ) #NEWLINE# s [ 'd' ] = Gaffer . Dot ( ) #NEWLINE# g = GafferUI . NodeGadget . create ( s [ 'd' ] ) #NEWLINE# self . assertTrue ( isinstance ( g , GafferUI . DotNodeGadget ) ) #NEWLINE# s [ 'd' ] . setup ( s [ 'n' ] [ 'op1' ] ) #NEWLINE# self . assertTrue ( ( g . nodule ( s [ 'd' ] [ 'in' ] ) is not None ) ) #NEWLINE# self . assertTrue ( ( g . nodule ( s [ 'd' ] [ 'out' ] ) is not None ) ) #NEWLINE# self . assertEqual ( g . noduleTangent ( g . nodule ( s [ 'd' ] [ 'in' ] ) ) , IECore . V3f ( 0 , 1 , 0 ) ) #NEWLINE# self . assertEqual ( g . noduleTangent ( g . nodule ( s [ 'd' ] [ 'out' ] ) ) , IECore . V3f ( 0 , ( - 1 ) , 0 ) )