def test_getSessionExistent(self):
        """
        L{site.getSession} gets a previously generated session, by its unique
        ID.
        """
        site = server.Site(resource.Resource())
        createdSession = self.getAutoExpiringSession(site)

        retrievedSession = site.getSession(createdSession.uid)

        self.assertIs(createdSession, retrievedSession)

        L{site.getSession} gets a previously generated session, by its unique
        ID.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_web.py