#NEWLINE# def testDispatchDifferentFrame( self ) : #NEWLINE# #INDENT# dispatcher = GafferDispatch . Dispatcher . create ( 'testDispatcher' ) #NEWLINE# dispatcher [ 'framesMode' ] . setValue ( GafferDispatch . Dispatcher . FramesMode . CurrentFrame ) #NEWLINE# s = Gaffer . ScriptNode ( ) #NEWLINE# s [ 'n1' ] = GafferDispatchTest . LoggingExecutableNode ( ) #NEWLINE# context = Gaffer . Context ( s . context ( ) ) #NEWLINE# context . setFrame ( ( s . context ( ) . getFrame ( ) + 10 ) ) #NEWLINE# self . assertEqual ( dispatcher . frameRange ( context , context ) , IECore . frameListFromList ( [ int ( context . getFrame ( ) ) ] ) ) #NEWLINE# with context : #NEWLINE# #INDENT# dispatcher . dispatch ( [ s [ 'n1' ] ] ) #NEWLINE# #UNINDENT# self . assertEqual ( len ( s [ 'n1' ] . log ) , 1 ) #NEWLINE# self . assertEqual ( s [ 'n1' ] . log [ 0 ] . context . getFrame ( ) , context . getFrame ( ) )