#NEWLINE# def testCurrent( self ) : #NEWLINE# #INDENT# c = Gaffer . Context . current ( ) #NEWLINE# c2 = Gaffer . Context ( ) #NEWLINE# self . assertEqual ( c , self ) #NEWLINE# c2 [ 'something' ] = 1 #NEWLINE# with c2 : #NEWLINE# #INDENT# self . failUnless ( Gaffer . Context . current ( ) . isSame ( c2 ) ) #NEWLINE# self . assertEqual ( Gaffer . Context . current ( ) [ 'something' ] , 1 ) #NEWLINE# #UNINDENT# self . failUnless ( Gaffer . Context . current ( ) . isSame ( c ) )