# Path: ironicclient/tests/unit/utils.py
# class BaseTestCase(testtools.TestCase):
# class FakeAPI(object):
# class FakeConnection(object):
# class FakeResponse(object):
#     def setUp(self):
#     def __init__(self, responses, path_prefix=None):
#     def _request(self, method, url, headers=None, body=None, params=None):
#     def raw_request(self, *args, **kwargs):
#     def json_request(self, *args, **kwargs):
#     def __init__(self, response=None, path_prefix=None):
#     def request(self, method, conn_url, **kwargs):
#     def setresponse(self, response):
#     def getresponse(self):
#     def __repr__(self):
#     def __init__(self, headers, body=None, version=None, status=None,
#                  reason=None, request_headers={}):
#     def getheaders(self):
#     def getheader(self, key, default):
#     def read(self, amt):
#     def __repr__(self):
# def mockSessionResponse(headers, content=None, status_code=None, version=None,
#                         request_headers={}):
# def mockSession(headers, content=None, status_code=None, version=None):
# 
# Path: ironicclient/v1/conductor.py
# class Conductor(base.Resource):
# class ConductorManager(base.Manager):
#     def __repr__(self):
#     def list(self, marker=None, limit=None, sort_key=None, sort_dir=None,
#              fields=None, detail=False, os_ironic_api_version=None,
#              global_request_id=None):
#     def get(self, hostname, fields=None, os_ironic_api_version=None,
#             global_request_id=None):


import testtools
from testtools.matchers import HasLength
from ironicclient.tests.unit import utils
from ironicclient.v1 import conductor
    {
        'GET': (
            {},
            {"conductors": [CONDUCTOR2]}
        ),
    },
}

fake_responses_sorting = {
    '/v1/conductors/?sort_key=updated_at':
    {
        'GET': (
            {},
            {"conductors": [CONDUCTOR2, CONDUCTOR1]}
        ),
    },
    '/v1/conductors/?sort_dir=desc':
    {
        'GET': (
            {},
            {"conductors": [CONDUCTOR2, CONDUCTOR1]}
        ),
    },
}


class ConductorManagerTest(testtools.TestCase):

    def setUp(self):
        super(ConductorManagerTest, self).setUp()

# Path: ironicclient/tests/unit/utils.py
# class BaseTestCase(testtools.TestCase):
# class FakeAPI(object):
# class FakeConnection(object):
# class FakeResponse(object):
#     def setUp(self):
#     def __init__(self, responses, path_prefix=None):
#     def _request(self, method, url, headers=None, body=None, params=None):
#     def raw_request(self, *args, **kwargs):
#     def json_request(self, *args, **kwargs):
#     def __init__(self, response=None, path_prefix=None):
#     def request(self, method, conn_url, **kwargs):
#     def setresponse(self, response):
#     def getresponse(self):
#     def __repr__(self):
#     def __init__(self, headers, body=None, version=None, status=None,
#                  reason=None, request_headers={}):
#     def getheaders(self):
#     def getheader(self, key, default):
#     def read(self, amt):
#     def __repr__(self):
# def mockSessionResponse(headers, content=None, status_code=None, version=None,
#                         request_headers={}):
# def mockSession(headers, content=None, status_code=None, version=None):
# 
# Path: ironicclient/v1/conductor.py
# class Conductor(base.Resource):
# class ConductorManager(base.Manager):
#     def __repr__(self):
#     def list(self, marker=None, limit=None, sort_key=None, sort_dir=None,
#              fields=None, detail=False, os_ironic_api_version=None,
#              global_request_id=None):
#     def get(self, hostname, fields=None, os_ironic_api_version=None,
#             global_request_id=None):


# Path: ironicclient/tests/unit/v1/test_conductor.py
import testtools
from testtools.matchers import HasLength
from ironicclient.tests.unit import utils
from ironicclient.v1 import conductor

    {
        'GET': (
            {},
            {"conductors": [CONDUCTOR2]}
        ),
    },
}

fake_responses_sorting = {
    '/v1/conductors/?sort_key=updated_at':
    {
        'GET': (
            {},
            {"conductors": [CONDUCTOR2, CONDUCTOR1]}
        ),
    },
    '/v1/conductors/?sort_dir=desc':
    {
        'GET': (
            {},
            {"conductors": [CONDUCTOR2, CONDUCTOR1]}
        ),
    },
}


class ConductorManagerTest(testtools.TestCase):

    def setUp(self):
        super(ConductorManagerTest, self).setUp()

        self.api = utils.FakeAPI(fake_responses)