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

        @param method: see L{MethodInjectionTestsMixin}
        """
        uri = b'http://twisted.invalid'
        client.downloadPage(uri, file=io.BytesIO(), method=method)

        Attempt a request with the provided method.

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