def CheckLocked(self):
    return self.locked and not self.CheckExpired()
Just like self.assertTrue(a >= b), but with a nicer default message.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/memcache/memcache_stub.py/CacheEntry.CheckLocked--crossover with--dataset/ETHPy150Open locustio/locust/locust/test/testcases.py/LocustTestCase.assertGreaterEqual