def test_makeSession(self):
        """
        L{site.getSession} generates a new C{Session} instance with an uid of
        type L{bytes}.
        """
        site = server.Site(resource.Resource())
        session = self.getAutoExpiringSession(site)

        self.assertIsInstance(session, server.Session)
        self.assertIsInstance(session.uid, bytes)

        L{site.getSession} generates a new C{Session} instance with an uid of
        type L{bytes}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_web.py