#NEWLINE# def testCurrentChangedSignal( self ) : #NEWLINE# #INDENT# tc = GafferUI . TabbedContainer ( ) #NEWLINE# def s( t , c ) : #NEWLINE# #INDENT# self . failUnless ( ( t is tc ) ) #NEWLINE# self . __current = c #NEWLINE# #UNINDENT# c = tc . currentChangedSignal ( ) . connect ( s ) #NEWLINE# self . __current = None #NEWLINE# b1 = GafferUI . Button ( ) #NEWLINE# tc . append ( b1 ) #NEWLINE# self . failUnless ( ( s . __current is b1 ) ) #NEWLINE# self . failUnless ( ( tc . getCurrent ( ) is b1 ) ) #NEWLINE# b2 = GafferUI . Button ( ) #NEWLINE# tc . append ( b2 ) #NEWLINE# self . failUnless ( ( self . __current is b1 ) ) #NEWLINE# self . failUnless ( ( tc . getCurrent ( ) is b1 ) ) #NEWLINE# tc . setCurrent ( b2 ) #NEWLINE# self . failUnless ( ( self . __current is b2 ) ) #NEWLINE# self . failUnless ( ( tc . getCurrent ( ) is b2 ) )