#NEWLINE# def testStringSubstitutions( self ) : #NEWLINE# #INDENT# checker = os . path . expandvars ( '$GAFFER_ROOT/python/GafferCortexTest/images/checker.exr' ) #NEWLINE# checker = IECore . Reader . create ( checker ) . read ( ) #NEWLINE# node = GafferCortex . ObjectWriter ( ) #NEWLINE# node [ 'fileName' ] . setValue ( self . __exrSequence . fileName ) #NEWLINE# node [ 'in' ] . setValue ( self ) #NEWLINE# contexts = [ ] #NEWLINE# for i in self . __exrSequence . frameList . asList ( ) : #NEWLINE# #INDENT# context = Gaffer . Context ( ) #NEWLINE# context . setFrame ( i ) #NEWLINE# with context : #NEWLINE# #INDENT# node [ 'task' ] . execute ( ) #NEWLINE# #UNINDENT# #UNINDENT# for f in self . __exrSequence . fileNames ( ) : #NEWLINE# #INDENT# self . failUnless ( os . path . exists ( f ) )