#NEWLINE# def testManyFrames( self ) : #NEWLINE# #INDENT# s = Gaffer . ScriptNode ( ) #NEWLINE# s [ 't1' ] = GafferDispatchTest . LoggingExecutableNode ( ) #NEWLINE# s [ 't1' ] [ 'f' ] = Gaffer . StringPlug ( defaultValue = 'T1.####' ) #NEWLINE# s [ 't2' ] = GafferDispatchTest . LoggingExecutableNode ( ) #NEWLINE# s [ 't2' ] [ 'f' ] = Gaffer . StringPlug ( defaultValue = 'T1.####' ) #NEWLINE# s [ 't3' ] = GafferDispatchTest . LoggingExecutableNode ( ) #NEWLINE# s [ 't3' ] [ 'f' ] = Gaffer . StringPlug ( defaultValue = 'T1.####' ) #NEWLINE# s [ 't2' ] [ 'preTasks' ] [ 0 ] . setInput ( dispatcher [ 't1' ] [ 'task' ] ) #NEWLINE# s [ 't3' ] [ 'preTasks' ] [ 0 ] . setInput ( s [ 't2' ] [ 'task' ] ) #NEWLINE# dispatcher = GafferDispatch . Dispatcher . create ( 'testDispatcher' ) #NEWLINE# dispatcher [ 'framesMode' ] . setValue ( dispatcher . FramesMode . CustomRange ) #NEWLINE# dispatcher [ 'frameRange' ] . setValue ( '1-10000' ) #NEWLINE# dispatcher . dispatch ( [ s [ 't3' ] ] ) #NEWLINE# self . assertEqual ( len ( s [ 't1' ] . log ) , 10000 ) #NEWLINE# self . assertEqual ( len ( s [ 't2' ] . log ) , 10000 ) #NEWLINE# self . assertEqual ( len ( s [ 't3' ] . log ) , 10000 )