# 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
                      'id': 'd1a541311782870742235'}
        }


class TestCase(testtools.TestCase):
    TEST_REQUEST_BASE = {
        'verify': True,
    }

    def setUp(self):
        super(TestCase, self).setUp()
        if (os.environ.get('OS_STDOUT_CAPTURE') == 'True' or
                os.environ.get('OS_STDOUT_CAPTURE') == '1'):
            stdout = self.useFixture(fixtures.StringStream('stdout')).stream
            self.useFixture(fixtures.MonkeyPatch('sys.stdout', stdout))
        if (os.environ.get('OS_STDERR_CAPTURE') == 'True' or
                os.environ.get('OS_STDERR_CAPTURE') == '1'):
            stderr = self.useFixture(fixtures.StringStream('stderr')).stream
            self.useFixture(fixtures.MonkeyPatch('sys.stderr', stderr))

    def make_env(self, exclude=None, fake_env=FAKE_ENV):
        env = dict((k, v) for k, v in fake_env.items() if k != exclude)
        self.useFixture(fixtures.MonkeyPatch('os.environ', env))

    def shell(self, argstr, exitcodes=(0,)):
        orig = sys.stdout
        orig_stderr = sys.stderr
        try:
            sys.stdout = io.StringIO()
            sys.stderr = io.StringIO()

# 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

                      'id': 'd1a541311782870742235'}
        }


class TestCase(testtools.TestCase):
    TEST_REQUEST_BASE = {
        'verify': True,
    }

    def setUp(self):
        super(TestCase, self).setUp()
        if (os.environ.get('OS_STDOUT_CAPTURE') == 'True' or
                os.environ.get('OS_STDOUT_CAPTURE') == '1'):
            stdout = self.useFixture(fixtures.StringStream('stdout')).stream
            self.useFixture(fixtures.MonkeyPatch('sys.stdout', stdout))
        if (os.environ.get('OS_STDERR_CAPTURE') == 'True' or
                os.environ.get('OS_STDERR_CAPTURE') == '1'):
            stderr = self.useFixture(fixtures.StringStream('stderr')).stream
            self.useFixture(fixtures.MonkeyPatch('sys.stderr', stderr))

    def make_env(self, exclude=None, fake_env=FAKE_ENV):
        env = dict((k, v) for k, v in fake_env.items() if k != exclude)
        self.useFixture(fixtures.MonkeyPatch('os.environ', env))

    def shell(self, argstr, exitcodes=(0,)):
        orig = sys.stdout
        orig_stderr = sys.stderr
        try:
            sys.stdout = io.StringIO()
            sys.stderr = io.StringIO()

            _shell = shell.OpenStackMagnumShell()