def _TestExpireOneSession(self, session_prefix, session_age_seconds):
    self._StubDatetime()

    session = self.mox.CreateMockAnything()
    mock_e1 = self.mox.CreateMockAnything()

    now = 12345
    ret = -1

    session.key().AndReturn(session)
    session.name().AndReturn('%s1' % session_prefix)
    gaeserver.datetime.timedelta(
        seconds = session_age_seconds).AndReturn('age')

    self.stubs.Set(
        gaeserver.Auth1ServerDatastoreSession, 'ExpireOne', mock_e1)
    gaeserver.Auth1ServerDatastoreSession.ExpireOne(
        session, 'age', now).AndReturn(ret)

    self.mox.ReplayAll()
    self.assertEqual(ret, self.asps.ExpireOne(session, now=now))
    self.mox.VerifyAll()
Calculates a linear model fit ... anova/ancova/lin-regress/t-test/etc. Taken
dataset/ETHPy150Open google/simian/src/tests/simian/auth/gaeserver_test.py/AuthSessionSimianServer._TestExpireOneSession--crossover with--dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/aglm