#NEWLINE# def synchronizerUpdateTest( self , computedGraphTestHarness ) : #NEWLINE# #INDENT# synchronizer = self . createSynchronizer ( ) #NEWLINE# def updateValueInSharedState( self , key , view ) : #NEWLINE# #INDENT# view [ key ] = JsonPickle . toJson ( self . keyValue ) #NEWLINE# #UNINDENT# self . runInTransaction ( computedGraphKey . keyName , updateValueInSharedState , False ) #NEWLINE# with synchronizer : #NEWLINE# #INDENT# assert ( SharedStateSynchronizer . getView ( ) is not None ) #NEWLINE# ( computedGraphKeyspace , computedGraphKey ) = self . createKey ( ) #NEWLINE# self . synchronizerWaitForKey ( self . keyName , synchronizer ) #NEWLINE# self . assertEqual ( computedGraphKey . value , ( self . keyValue , ) )