#NEWLINE# def testReleaseOtherOwnedLock( self ) : #NEWLINE# #INDENT# "Test releasing a lock that's owned by a different agent." #NEWLINE# lock = self . _RunAsync ( Lock . Acquire , self . _client , 'tst' , 'id0' , 'owner89' ) #NEWLINE# lock2 = self . _RunAsync ( Lock . Query , self . _client , lock . lock_id , None ) #NEWLINE# lock2 . owner_id = 'new_owner_id' #NEWLINE# self . _RunAsync ( lock2 . Update , self . _client ) #NEWLINE# self . assertRaises ( LockFailedError , self . _RunAsync , lock . Release , self . _client ) #NEWLINE# lock3 = self . _RunAsync ( Lock . Query , self . _client , lock . lock_id , None )