def testObtainLockWhenFail(self):
    lock = 'foo'
    self.mox.StubOutWithMock(gae_util, 'memcache')
    gae_util.memcache.incr('lock_%s' % lock, initial_value=0).AndReturn(2)
    self.mox.ReplayAll()
    self.assertFalse(gae_util.ObtainLock(lock))
    self.mox.VerifyAll()
Update an existing post. Must be one's own post.
dataset/ETHPy150Open google/simian/src/tests/simian/mac/common/gae_util_test.py/GaeUtilModuleTest.testObtainLockWhenFail--crossover with--dataset/ETHPy150Open heiskr/sagefy/server/routes/topic.py/update_post_route