#NEWLINE# def testConnectionMinimisedAccessors( self ) : #NEWLINE# #INDENT# script = Gaffer . ScriptNode ( ) #NEWLINE# script [ 'add1' ] = GafferTest . AddNode ( ) #NEWLINE# script [ 'add2' ] = GafferTest . AddNode ( ) #NEWLINE# script [ 'add3' ] = GafferTest . AddNode ( ) #NEWLINE# script [ 'add2' ] [ 'op1' ] . setInput ( script [ 'add1' ] [ 'sum' ] ) #NEWLINE# script [ 'add3' ] [ 'op1' ] . setInput ( script [ 'add2' ] [ 'sum' ] ) #NEWLINE# g = GafferUI . GraphGadget ( script ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( g [ 'add1' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( script [ 'add2' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( script [ 'add3' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add1' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add2' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add3' ] ) ) #NEWLINE# g . setNodeInputConnectionsMinimised ( script [ 'add3' ] , True ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( script [ 'add1' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( script [ 'add2' ] ) ) #NEWLINE# self . assertTrue ( g . getNodeInputConnectionsMinimised ( script [ 'add3' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add1' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add2' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add3' ] ) ) #NEWLINE# g . setNodeOutputConnectionsMinimised ( script [ 'add2' ] , True ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( script [ 'add1' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( script [ 'add2' ] ) ) #NEWLINE# self . assertTrue ( g . getNodeInputConnectionsMinimised ( script [ 'add3' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add1' ] ) ) #NEWLINE# self . assertTrue ( g . getNodeOutputConnectionsMinimised ( script [ 'add2' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add3' ] ) ) #NEWLINE# g . setNodeOutputConnectionsMinimised ( script [ 'add2' ] , False ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( script [ 'add1' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( script [ 'add2' ] ) ) #NEWLINE# self . assertTrue ( g . getNodeInputConnectionsMinimised ( script [ 'add3' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add1' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add2' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add3' ] ) ) #NEWLINE# g . setNodeInputConnectionsMinimised ( script [ 'add3' ] , False ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( script [ 'add1' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( script [ 'add2' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeInputConnectionsMinimised ( script [ 'add3' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add1' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add2' ] ) ) #NEWLINE# self . assertFalse ( g . getNodeOutputConnectionsMinimised ( script [ 'add3' ] ) )