def METHOD_NAME(self):
    os.environ["LIBCLOUD_DEBUG_PRETTY_PRINT_RESPONSE"] = "1"
    conn = LoggingConnection(host="example.com", port=80)
    r = self._get_mock_response("application/xml", "<foo><bar /></foo>")
    result = conn._log_response(r).replace("\r", "")
    self.assertTrue(EXPECTED_DATA_XML_PRETTY in result)