def test_erroneousResponse(self):
        """
        Test that calling the xmlrpc client on a static http server raises
        an exception.
        """
        proxy = xmlrpc.Proxy(networkString("http://127.0.0.1:%d/" %
                                           (self.port.getHost().port,)))
        return self.assertFailure(proxy.callRemote("someMethod"), ValueError)

        Test that calling the xmlrpc client on a static http server raises
        an exception.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_xmlrpc.py