def testPut(self):
    session = self._GetMockSession()
    self._MockMemcache(
        'set', self._Key(self.sid),
        value=session,
        time=self.ams.ttl).AndReturn(None)
    self._MockSuper('_Put', session).AndReturn(None)

    self.mox.ReplayAll()
    self.ams._Put(session)
    self.mox.VerifyAll()
Test _Put().
dataset/ETHPy150Open google/simian/src/tests/simian/auth/gaeserver_test.py/Auth1ServerDatastoreMemcacheSessionTest.testPut