#NEWLINE# def testFramesNotAvailableInNonSequenceMode( self ) : #NEWLINE# #INDENT# s = Gaffer . ScriptNode ( ) #NEWLINE# s [ 'n' ] = GafferDispatch . PythonCommand ( ) #NEWLINE# s [ 'n' ] [ 'command' ] . setValue ( 'self.frames = frames' ) #NEWLINE# d = self . __dispatcher ( frameRange = '1-5' ) #NEWLINE# self . assertRaisesRegexp ( RuntimeError , "NameError: name 'frames' is not defined" , d . dispatch , [ s [ 'n' ] ] ) #NEWLINE# s [ 'n' ] [ 'dispatcher' ] [ 'batchSize' ] . setValue ( 5 ) #NEWLINE# self . assertRaisesRegexp ( RuntimeError , "NameError: name 'frames' is not defined" , d . dispatch , [ s [ 'n' ] ] )