def makeRequest(self, method=b'GET', clientAddress=None):
        """
        Create a L{DummyRequest} (change me to create a
        L{twisted.web.http.Request} instead).
        """
        if clientAddress is None:
            clientAddress = IPv4Address("TCP", "localhost", 1234)
        request = DummyRequest(b'/')
        request.method = method
        request.client = clientAddress
        return request

        Create a L{DummyRequest} (change me to create a
        L{twisted.web.http.Request} instead).
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_httpauth.py