#NEWLINE# def testReadAfterSerialisation( self ) : #NEWLINE# #INDENT# s = Gaffer . ScriptNode ( ) #NEWLINE# s [ 'n' ] = GafferCortex . ObjectReader ( ) #NEWLINE# s [ 'n' ] [ 'fileName' ] . setValue ( ( os . path . dirname ( __file__ ) + '/images/checker.exr' ) ) #NEWLINE# r = s [ 'n' ] [ 'out' ] . getValue ( ) #NEWLINE# ss = s . serialise ( ) #NEWLINE# s = Gaffer . ScriptNode ( ) #NEWLINE# s . execute ( s ) #NEWLINE# self . assertEqual ( s [ 'n' ] [ 'out' ] . getValue ( ) , r )