# Path: magnumclient/common/httpclient.py
# LOG = logging.getLogger(__name__)
# USER_AGENT = 'python-magnumclient'
# CHUNKSIZE = 1024 * 64  # 64kB
# API_VERSION = '/v1'
# DEFAULT_API_VERSION = 'latest'
# def _extract_error_json_text(body_json):
# def _extract_error_json(body, resp):
#     def __init__(self, endpoint, api_version=DEFAULT_API_VERSION, **kwargs):
#     def get_connection_params(endpoint, **kwargs):
#     def get_connection(self):
#     def log_curl_request(self, method, url, kwargs):
#     def log_http_response(resp, body=None):
#     def _make_connection_url(self, url):
#     def _http_request(self, url, method, **kwargs):
#     def json_request(self, method, url, **kwargs):
#     def raw_request(self, method, url, **kwargs):
#     def __init__(self, host, port, key_file=None, cert_file=None,
#                  ca_file=None, timeout=None, insecure=False):
#     def connect(self):
#     def get_system_ca_file():
#     def __init__(self, user_agent=USER_AGENT, logger=LOG,
#                  api_version=DEFAULT_API_VERSION, *args, **kwargs):
#     def _http_request(self, url, method, **kwargs):
#     def json_request(self, method, url, **kwargs):
#     def raw_request(self, method, url, **kwargs):
#     def __init__(self, resp):
#     def __iter__(self):
#     def __bool__(self):
#     def next(self):
# def _construct_http_client(*args, **kwargs):
# class HTTPClient(object):
# class VerifiedHTTPSConnection(http_client.HTTPSConnection):
# class SessionClient(adapter.LegacyJsonAdapter):
# class ResponseBodyIterator(object):
# 
# Path: magnumclient/shell.py
# HAS_KEYRING = False
#     HAS_KEYRING = True
# LATEST_API_VERSION = ('1', 'latest')
# DEFAULT_INTERFACE = 'public'
# DEFAULT_SERVICE_TYPE = 'container-infra'
# def positive_non_zero_float(text):
#     def __init__(self, *args, **kwargs):
#     def error(self, message):
#     def get_base_parser(self):
#     def get_subcommand_parser(self, version):
#     def _add_bash_completion_subparser(self, subparsers):
#     def _find_actions(self, subparsers, actions_module):
#     def setup_debugging(self, debug):
#     def _check_version(self, api_version):
#     def _ensure_auth_info(self, args):
#     def main(self, argv):
#     def _check_deprecation(self, func, argv):
#     def _dump_timings(self, timings):
#             def __init__(self, url, seconds):
#     def do_bash_completion(self, _args):
#     def do_help(self, args):
#     def start_section(self, heading):
# def main():
# class MagnumClientArgumentParser(argparse.ArgumentParser):
# class OpenStackMagnumShell(object):
#         class Tyme(object):
# class OpenStackHelpFormatter(argparse.HelpFormatter):


import copy
import datetime
import io
import os
import queue
import sys
import fixtures
import testtools
from oslo_serialization import jsonutils
from magnumclient.common import httpclient as http
from magnumclient import shell
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.




FAKE_ENV = {'OS_USERNAME': 'username',
            'OS_PASSWORD': 'password',
            'OS_PROJECT_NAME': 'project_name',
            'OS_AUTH_URL': 'http://no.where/v2.0'}


class BaseTestCase(testtools.TestCase):

    def setUp(self):
        super(BaseTestCase, self).setUp()
        self.useFixture(fixtures.FakeLogger())


class FakeAPI(object):
    def __init__(self, responses):
        self.responses = responses
        self.calls = []


# Path: magnumclient/common/httpclient.py
# LOG = logging.getLogger(__name__)
# USER_AGENT = 'python-magnumclient'
# CHUNKSIZE = 1024 * 64  # 64kB
# API_VERSION = '/v1'
# DEFAULT_API_VERSION = 'latest'
# def _extract_error_json_text(body_json):
# def _extract_error_json(body, resp):
#     def __init__(self, endpoint, api_version=DEFAULT_API_VERSION, **kwargs):
#     def get_connection_params(endpoint, **kwargs):
#     def get_connection(self):
#     def log_curl_request(self, method, url, kwargs):
#     def log_http_response(resp, body=None):
#     def _make_connection_url(self, url):
#     def _http_request(self, url, method, **kwargs):
#     def json_request(self, method, url, **kwargs):
#     def raw_request(self, method, url, **kwargs):
#     def __init__(self, host, port, key_file=None, cert_file=None,
#                  ca_file=None, timeout=None, insecure=False):
#     def connect(self):
#     def get_system_ca_file():
#     def __init__(self, user_agent=USER_AGENT, logger=LOG,
#                  api_version=DEFAULT_API_VERSION, *args, **kwargs):
#     def _http_request(self, url, method, **kwargs):
#     def json_request(self, method, url, **kwargs):
#     def raw_request(self, method, url, **kwargs):
#     def __init__(self, resp):
#     def __iter__(self):
#     def __bool__(self):
#     def next(self):
# def _construct_http_client(*args, **kwargs):
# class HTTPClient(object):
# class VerifiedHTTPSConnection(http_client.HTTPSConnection):
# class SessionClient(adapter.LegacyJsonAdapter):
# class ResponseBodyIterator(object):
# 
# Path: magnumclient/shell.py
# HAS_KEYRING = False
#     HAS_KEYRING = True
# LATEST_API_VERSION = ('1', 'latest')
# DEFAULT_INTERFACE = 'public'
# DEFAULT_SERVICE_TYPE = 'container-infra'
# def positive_non_zero_float(text):
#     def __init__(self, *args, **kwargs):
#     def error(self, message):
#     def get_base_parser(self):
#     def get_subcommand_parser(self, version):
#     def _add_bash_completion_subparser(self, subparsers):
#     def _find_actions(self, subparsers, actions_module):
#     def setup_debugging(self, debug):
#     def _check_version(self, api_version):
#     def _ensure_auth_info(self, args):
#     def main(self, argv):
#     def _check_deprecation(self, func, argv):
#     def _dump_timings(self, timings):
#             def __init__(self, url, seconds):
#     def do_bash_completion(self, _args):
#     def do_help(self, args):
#     def start_section(self, heading):
# def main():
# class MagnumClientArgumentParser(argparse.ArgumentParser):
# class OpenStackMagnumShell(object):
#         class Tyme(object):
# class OpenStackHelpFormatter(argparse.HelpFormatter):


# Path: magnumclient/tests/utils.py
import copy
import datetime
import io
import os
import queue
import sys
import fixtures
import testtools
from oslo_serialization import jsonutils
from magnumclient.common import httpclient as http
from magnumclient import shell

#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.




FAKE_ENV = {'OS_USERNAME': 'username',
            'OS_PASSWORD': 'password',
            'OS_PROJECT_NAME': 'project_name',
            'OS_AUTH_URL': 'http://no.where/v2.0'}


class BaseTestCase(testtools.TestCase):

    def setUp(self):
        super(BaseTestCase, self).setUp()
        self.useFixture(fixtures.FakeLogger())


class FakeAPI(object):
    def __init__(self, responses):
        self.responses = responses
        self.calls = []


    def _request(self, method, url, headers=None, body=None):