#NEWLINE# def testHashIgnoresTimeWhenTimeNotReferenced( self ) : #NEWLINE# #INDENT# s = Gaffer . ScriptNode ( ) #NEWLINE# s [ 'n' ] = Gaffer . Node ( ) #NEWLINE# s [ 'n' ] [ 'user' ] [ 'f' ] = Gaffer . FloatPlug ( flags = ( Gaffer . Plug . Flags . Default | Gaffer . Plug . Flags . Dynamic ) ) #NEWLINE# s [ 'e' ] = Gaffer . Expression ( ) #NEWLINE# s [ 'e' ] . setExpression ( 'parent.n.user.f = 1' , 'OSL' ) #NEWLINE# with Gaffer . Context ( ) as c : #NEWLINE# #INDENT# c . setTime ( 1 ) #NEWLINE# h1 = s [ 'n' ] [ 'user' ] [ 'f' ] . hash ( ) #NEWLINE# c . setTime ( 2 ) #NEWLINE# h2 = s [ 'n' ] [ 'user' ] [ 'f' ] . hash ( ) #NEWLINE# #UNINDENT# self . assertEqual ( h1 , self )