'A function registered with L{server.Session.notifyOnExpire} is called
when the session expires.'

def test_notifyOnExpire(self):

    callbackRan = [False]
    def expired():
        callbackRan[0] = True
    self.session.notifyOnExpire(expired)
    self.session.expire()
    self.assertTrue(callbackRan[0])
