def getServerContext(self):
        """
        Return a new SSL context suitable for use in a test server.
        """
        pem = self._pem.getContent()
        cert = PrivateCertificate.load(
            pem, KeyPair.load(pem, FILETYPE_PEM), FILETYPE_PEM)
        return cert.options()

        Return a new SSL context suitable for use in a test server.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_tls.py