def __check_deleted(self):
    if self.__deleted:
      raise errors.LockError("Deleted lock %s" % self.name)
Test that the request object is available in the template and that its
dataset/ETHPy150Open ganeti/ganeti/lib/locking.py/SharedLock.__check_deleted--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/tests/regressiontests/context_processors/tests.py/RequestContextProcessorTests.test_request_attributes