#NEWLINE# def testConstruction( self ) : #NEWLINE# #INDENT# m = GafferTest . MultiplyNode ( ) #NEWLINE# self . failUnless ( isinstance ( m , GafferTest . MultiplyNode ) ) #NEWLINE# m = GafferTest . MultiplyNode ( 'a' ) #NEWLINE# self . failUnless ( isinstance ( m , GafferTest . MultiplyNode ) ) #NEWLINE# self . assertEqual ( m . getName ( ) , 'a' ) #NEWLINE# m = GafferTest . MultiplyNode ( 'a' ) #NEWLINE# m [ 'op1' ] . setValue ( 1 ) #NEWLINE# m [ 'op2' ] . setValue ( 2 ) #NEWLINE# self . failUnless ( isinstance ( m , GafferTest . MultiplyNode ) ) #NEWLINE# self . assertEqual ( m . getName ( ) , 'a' ) #NEWLINE# self . assertEqual ( m [ 'op1' ] . getValue ( ) , 1 ) #NEWLINE# self . assertEqual ( m [ 'op2' ] . getValue ( ) , 2 ) #NEWLINE# m = GafferTest . MultiplyNode ( 'a' ) #NEWLINE# m [ 'a' ] = Gaffer . IntPlug ( ) #NEWLINE# self . assertEqual ( m . getName ( ) , 'a' ) #NEWLINE# self . failUnless ( isinstance ( m [ 'a' ] , Gaffer . IntPlug ) )