def _3761b98b_673d_526c_8d55_fee918758e6e_services_hostedservices_testdcabc3_deployments_dcoddkinztest02_roles(self, method, url, body, headers):
        redirect_host = "ussouth.management.core.windows.net"

        if not getattr(AzureMockHttp, "in_redirect", False):
            setattr(AzureMockHttp, "in_redirect", True)
            headers["Location"] = url.replace(AZURE_SERVICE_MANAGEMENT_HOST, redirect_host)
            return (httplib.TEMPORARY_REDIRECT, None, headers, httplib.responses[httplib.TEMPORARY_REDIRECT])
        else:
            delattr(AzureMockHttp, "in_redirect")
            if redirect_host not in url:
                if AZURE_SERVICE_MANAGEMENT_HOST in url:
                    return (httplib.TEMPORARY_REDIRECT, None, headers, httplib.responses[httplib.TEMPORARY_REDIRECT])
                else:
                    return (httplib.REQUEST_TIMEOUT, None, None, httplib.responses[httplib.REQUEST_TIMEOUT])

            if method == "GET":
                body = self.fixtures.load('_3761b98b_673d_526c_8d55_fee918758e6e_services_hostedservices_testdcabc2.xml')

            return (httplib.OK, body, headers, httplib.responses[httplib.OK])
dataset/ETHPy150Open apache/libcloud/libcloud/test/compute/test_azure.py/AzureMockHttp._3761b98b_673d_526c_8d55_fee918758e6e_services_hostedservices_testdcabc3_deployments_dcoddkinztest02_roles/original