def test_serverSecurityCustomization(self):
        """
        Check that the security settings are passed from the server factory to
        the broker object.
        """
        security = jelly.SecurityOptions()
        factory = pb.PBServerFactory(Echoer(), security=security)
        broker = factory.buildProtocol(None)
        self.assertIs(broker.security, security)

        Check that the security settings are passed from the server factory to
        the broker object.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/test/test_pb.py