#NEWLINE# def testNumberOfInputs( self ) : #NEWLINE# #INDENT# n = GafferScene . SceneProcessor ( ) #NEWLINE# self . assertTrue ( isinstance ( n [ 'in' ] , GafferScene . ScenePlug ) ) #NEWLINE# n = GafferScene . SceneProcessor ( minInputs = 2 , maxInputs = 2 ) #NEWLINE# self . assertTrue ( isinstance ( n [ 'in' ] , Gaffer . ArrayPlug ) ) #NEWLINE# self . assertEqual ( len ( n [ 'in' ] ) , 2 ) #NEWLINE# self . assertTrue ( isinstance ( n [ 'in' ] [ 0 ] , GafferScene . ScenePlug ) ) #NEWLINE# self . assertTrue ( isinstance ( n [ 'in' ] [ 1 ] , GafferScene . ScenePlug ) ) #NEWLINE# self . assertEqual ( n [ 'in' ] . minSize ( ) , 2 ) #NEWLINE# self . assertEqual ( n [ 'in' ] . maxSize ( ) , 2 ) #NEWLINE# n = GafferScene . SceneProcessor ( minInputs = 2 , maxInputs = 1000 ) #NEWLINE# self . assertTrue ( isinstance ( n [ 'in' ] , Gaffer . ArrayPlug ) ) #NEWLINE# self . assertTrue ( isinstance ( n [ 'in' ] [ 0 ] , GafferScene . ScenePlug ) ) #NEWLINE# self . assertTrue ( isinstance ( n [ 'in' ] [ 1 ] , GafferScene . ScenePlug ) ) #NEWLINE# self . assertEqual ( len ( n [ 'in' ] ) , 2 ) #NEWLINE# self . assertEqual ( n [ 'in' ] . minSize ( ) , 2 ) #NEWLINE# self . assertEqual ( n [ 'in' ] . maxSize ( ) , 1000 ) #NEWLINE# n = GafferScene . SceneProcessor ( minInputs = 2 ) #NEWLINE# self . assertTrue ( isinstance ( n [ 'in' ] , Gaffer . ArrayPlug ) ) #NEWLINE# self . assertTrue ( isinstance ( n [ 'in' ] [ 0 ] , GafferScene . ScenePlug ) ) #NEWLINE# self . assertTrue ( isinstance ( n [ 'in' ] [ 1 ] , GafferScene . ScenePlug ) ) #NEWLINE# self . assertEqual ( len ( n [ 'in' ] ) , 2 ) #NEWLINE# self . assertEqual ( n [ 'in' ] . minSize ( ) , 2 ) #NEWLINE# self . assertEqual ( n [ 'in' ] . maxSize ( ) , Gaffer . ArrayPlug ( ) . maxSize ( ) )