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

        @param method: L{MethodInjectionTestsMixin}
        """
        client.HTTPDownloader(
            b"https://twisted.invalid",
            io.BytesIO(),
            method=method,
        )

        Attempt a request with the provided method.

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