def attemptRequestWithMaliciousMethod(self, method):
        """
        Attempt a request with the provided method.

        @param method: see L{MethodInjectionTestsMixin}
        """
        client.Request(
            method=method,
            uri=b"http://twisted.invalid",
            headers=http_headers.Headers(),
            bodyProducer=None,
        )

        Attempt a request with the provided method.

        @param method: see L{MethodInjectionTestsMixin}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_agent.py