# Path: muranoclient/osc/v1/schema.py
# LOG = logging.getLogger(__name__)
# class ShowSchema(command.ShowOne):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def formatter_default(self):
# 
# Path: muranoclient/tests/unit/osc/v1/fakes.py
# class TestApplicationCatalog(utils.TestCommand):
#     def setUp(self):
# 
# Path: muranoclient/v1/schemas.py
# class Schema(base.Resource):
# class SchemaManager(base.Manager):
#     def __repr__(self):
#     def data(self):
#     def get(self, class_name, method_names=None,
#             class_version=None, package_name=None):


from muranoclient.osc.v1 import schema as osc_schema
from muranoclient.tests.unit.osc.v1 import fakes
from muranoclient.v1 import schemas as api_schemas
        "properties": {}
    },
    'modelBuilder': {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {}
    }
}


class TestSchema(fakes.TestApplicationCatalog):
    def setUp(self):
        super(TestSchema, self).setUp()
        self.schemas_mock = \
            self.app.client_manager.application_catalog.schemas
        self.schemas_mock.get.return_value = api_schemas.Schema(
            None, SAMPLE_CLASS_SCHEMA)
        self.cmd = osc_schema.ShowSchema(self.app, None)

    def test_query_class_schema(self):
        arglist = ['class.name', 'methodName1',
                   '--package-name', 'package.name',
                   '--class-version', '>1']
        verifylist = [('class_name', 'class.name'),
                      ('method_names', ['methodName1']),
                      ('package_name', 'package.name'),
                      ('class_version', '>1')]

        parsed_args = self.check_parser(self.cmd, arglist, verifylist)


# Path: muranoclient/osc/v1/schema.py
# LOG = logging.getLogger(__name__)
# class ShowSchema(command.ShowOne):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def formatter_default(self):
# 
# Path: muranoclient/tests/unit/osc/v1/fakes.py
# class TestApplicationCatalog(utils.TestCommand):
#     def setUp(self):
# 
# Path: muranoclient/v1/schemas.py
# class Schema(base.Resource):
# class SchemaManager(base.Manager):
#     def __repr__(self):
#     def data(self):
#     def get(self, class_name, method_names=None,
#             class_version=None, package_name=None):


# Path: muranoclient/tests/unit/osc/v1/test_schema.py
from muranoclient.osc.v1 import schema as osc_schema
from muranoclient.tests.unit.osc.v1 import fakes
from muranoclient.v1 import schemas as api_schemas

        "properties": {}
    },
    'modelBuilder': {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {}
    }
}


class TestSchema(fakes.TestApplicationCatalog):
    def setUp(self):
        super(TestSchema, self).setUp()
        self.schemas_mock = \
            self.app.client_manager.application_catalog.schemas
        self.schemas_mock.get.return_value = api_schemas.Schema(
            None, SAMPLE_CLASS_SCHEMA)
        self.cmd = osc_schema.ShowSchema(self.app, None)

    def test_query_class_schema(self):
        arglist = ['class.name', 'methodName1',
                   '--package-name', 'package.name',
                   '--class-version', '>1']
        verifylist = [('class_name', 'class.name'),
                      ('method_names', ['methodName1']),
                      ('package_name', 'package.name'),
                      ('class_version', '>1')]

        parsed_args = self.check_parser(self.cmd, arglist, verifylist)


        columns, data = self.cmd.take_action(parsed_args)