def testSet(self):
    sid = '123'
    data = 'tea'
    now = 10

    self._StubGetModelClass()

    ads = self._GetAds()
    self.mox.StubOutWithMock(ads, '_Now')

    config = 'config'
    self.mox.StubOutWithMock(gaeserver.datastore, 'CreateRPC')
    gaeserver.datastore.CreateRPC(deadline=ads.deadline).AndReturn(config)

    session = self.mox.CreateMockAnything()
    session.put(rpc=config).AndReturn(None)

    ads.model(key_name=sid).AndReturn(session)
    ads._Now().AndReturn(now)

    self.mox.ReplayAll()
    ads.Set(sid, data)
    self.assertEqual(session.data, data)
    self.assertEqual(session.mtime, now)
    self.mox.VerifyAll()
Half-duplex SPI write.  The specified array of bytes will be clocked
dataset/ETHPy150Open google/simian/src/tests/simian/auth/gaeserver_test.py/Auth1ServerDatastoreSessionTest.testSet--crossover with--dataset/ETHPy150Open adafruit/Adafruit_Python_GPIO/Adafruit_GPIO/SPI.py/SpiDevMraa.write