# Path: muranoclient/apiclient/client.py
# class HTTPClient(object):
# class BaseClient(object):
#     def __init__(self,
#                  auth_plugin,
#                  region_name=None,
#                  endpoint_type="publicURL",
#                  original_ip=None,
#                  verify=True,
#                  cert=None,
#                  timeout=None,
#                  timings=False,
#                  keyring_saver=None,
#                  debug=False,
#                  user_agent=None,
#                  http=None):
#     def _http_log_req(self, url, method, kwargs):
#     def _http_log_resp(self, resp):
#     def serialize(self, kwargs):
#     def get_timings(self):
#     def reset_timings(self):
#     def request(self, url, method, **kwargs):
#     def concat_url(endpoint, url):
#     def client_request(self, client, url, method, **kwargs):
#     def add_client(self, base_client_instance):
#     def authenticate(self):
#     def __init__(self, http_client, extensions=None):
#     def client_request(self, url, method, **kwargs):
#     def head(self, url, **kwargs):
#     def get(self, url, **kwargs):
#     def post(self, url, **kwargs):
#     def put(self, url, **kwargs):
#     def delete(self, url, **kwargs):
#     def patch(self, url, **kwargs):
#     def get_class(api_name, version, version_map):


import json
import parse
import requests
from muranoclient.apiclient import client
    def __init__(self, data):
        super(TestResponse, self).__init__()
        self._content_consumed = True
        if isinstance(data, dict):
            self.status_code = data.get('status_code', 200)
            # Fake the text attribute to streamline Response creation
            text = data.get('text', "")
            if isinstance(text, (dict, list)):
                self._content = json.dumps(text)
                default_headers = {
                    "Content-Type": "application/json",
                }
            else:
                self._content = text
                default_headers = {}
            if isinstance(self._content, str):
                self._content = self._content.encode('utf-8', 'strict')
            self.headers = data.get('headers') or default_headers
        else:
            self.status_code = data

    def __eq__(self, other):
        return (self.status_code == other.status_code and
                self.headers == other.headers and
                self._content == other._content)

    def __ne__(self, other):
        return not self.__eq__(other)



# Path: muranoclient/apiclient/client.py
# class HTTPClient(object):
# class BaseClient(object):
#     def __init__(self,
#                  auth_plugin,
#                  region_name=None,
#                  endpoint_type="publicURL",
#                  original_ip=None,
#                  verify=True,
#                  cert=None,
#                  timeout=None,
#                  timings=False,
#                  keyring_saver=None,
#                  debug=False,
#                  user_agent=None,
#                  http=None):
#     def _http_log_req(self, url, method, kwargs):
#     def _http_log_resp(self, resp):
#     def serialize(self, kwargs):
#     def get_timings(self):
#     def reset_timings(self):
#     def request(self, url, method, **kwargs):
#     def concat_url(endpoint, url):
#     def client_request(self, client, url, method, **kwargs):
#     def add_client(self, base_client_instance):
#     def authenticate(self):
#     def __init__(self, http_client, extensions=None):
#     def client_request(self, url, method, **kwargs):
#     def head(self, url, **kwargs):
#     def get(self, url, **kwargs):
#     def post(self, url, **kwargs):
#     def put(self, url, **kwargs):
#     def delete(self, url, **kwargs):
#     def patch(self, url, **kwargs):
#     def get_class(api_name, version, version_map):


# Path: muranoclient/apiclient/fake_client.py
import json
import parse
import requests
from muranoclient.apiclient import client

    def __init__(self, data):
        super(TestResponse, self).__init__()
        self._content_consumed = True
        if isinstance(data, dict):
            self.status_code = data.get('status_code', 200)
            # Fake the text attribute to streamline Response creation
            text = data.get('text', "")
            if isinstance(text, (dict, list)):
                self._content = json.dumps(text)
                default_headers = {
                    "Content-Type": "application/json",
                }
            else:
                self._content = text
                default_headers = {}
            if isinstance(self._content, str):
                self._content = self._content.encode('utf-8', 'strict')
            self.headers = data.get('headers') or default_headers
        else:
            self.status_code = data

    def __eq__(self, other):
        return (self.status_code == other.status_code and
                self.headers == other.headers and
                self._content == other._content)

    def __ne__(self, other):
        return not self.__eq__(other)



class FakeHTTPClient(client.HTTPClient):