def _MockMemcache(self, method_name, *args, **kwargs):
    if not 'memcache' in self._mocked:
      self.stubs.Set(
          gaeserver, 'memcache', self.mox.CreateMock(gaeserver.memcache))
      self._mocked['memcache'] = True
    return getattr(gaeserver.memcache, method_name)(*args, **kwargs)
Allow all access.
dataset/ETHPy150Open google/simian/src/tests/simian/auth/gaeserver_test.py/Auth1ServerDatastoreMemcacheSessionTest._MockMemcache--crossover with--dataset/ETHPy150Open google/grr/grr/lib/aff4_objects/user_managers.py/NullAccessControlManager.CheckHuntAccess