# Path: muranoclient/osc/v1/environment.py
# LOG = logging.getLogger(__name__)
# class ListEnvironments(command.Lister):
# class ShowEnvironment(command.ShowOne):
# class RenameEnvironment(command.Lister):
# class EnvironmentSessionCreate(command.ShowOne):
# class EnvironmentCreate(command.Lister):
# class EnvironmentDelete(command.Lister):
# class EnvironmentDeploy(command.ShowOne):
# class EnvironmentAppsEdit(command.Command):
# class EnvironmentModelShow(command.ShowOne):
# class EnvironmentModelEdit(command.ShowOne):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
# 
# Path: muranoclient/tests/unit/osc/v1/fakes.py
# class TestApplicationCatalog(utils.TestCommand):
#     def setUp(self):
# 
# Path: muranoclient/v1/environments.py
# class Environment(base.Resource):
# class Status(base.Resource):
# class EnvironmentManager(base.ManagerWithFind):
#     def __repr__(self):
#     def data(self, **kwargs):
#     def __repr__(self):
#     def data(self, **kwargs):
#     def list(self, all_tenants=False, tenant_id=None):
#     def create(self, data):
#     def update(self, environment_id, name):
#     def delete(self, environment_id, abandon=False):
#     def get(self, environment_id, session_id=None):
#     def last_status(self, environment_id, session_id):
#     def get_model(self, environment_id, path, session_id=None):
#     def update_model(self, environment_id, data, session_id):


import collections
import json
import tempfile
from unittest import mock
from muranoclient.osc.v1 import environment as osc_env
from muranoclient.tests.unit.osc.v1 import fakes
from muranoclient.v1 import environments as api_env
    def test_environment_model_show_basic(self):
        arglist = ['env-id']
        verifylist = [('id', 'env-id')]
        parsed_args = self.check_parser(self.cmd, arglist, verifylist)
        columns, data = self.cmd.take_action(parsed_args)

        # Check that columns are correct
        expected_columns = ('?', 'defaultNetworks', 'name', 'region')
        self.assertEqual(expected_columns, columns)

        # Check that data is correct
        self.assertCountEqual(ENV_MODEL.values(), data)

    def test_environment_model_show_full(self):
        arglist = ['env-id', '--path', '/path', '--session-id', 'sess-id']
        verifylist = [('id', 'env-id'), ('path', '/path'),
                      ('session_id', 'sess-id')]
        parsed_args = self.check_parser(self.cmd, arglist, verifylist)
        columns, data = self.cmd.take_action(parsed_args)

        # Check that columns are correct
        expected_columns = ('?', 'defaultNetworks', 'name', 'region')
        self.assertEqual(expected_columns, columns)

        # Check that data is correct
        self.assertCountEqual(ENV_MODEL.values(), data)


class TestEnvironmentModelEdit(TestEnvironment):
    def setUp(self):

# Path: muranoclient/osc/v1/environment.py
# LOG = logging.getLogger(__name__)
# class ListEnvironments(command.Lister):
# class ShowEnvironment(command.ShowOne):
# class RenameEnvironment(command.Lister):
# class EnvironmentSessionCreate(command.ShowOne):
# class EnvironmentCreate(command.Lister):
# class EnvironmentDelete(command.Lister):
# class EnvironmentDeploy(command.ShowOne):
# class EnvironmentAppsEdit(command.Command):
# class EnvironmentModelShow(command.ShowOne):
# class EnvironmentModelEdit(command.ShowOne):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
# 
# Path: muranoclient/tests/unit/osc/v1/fakes.py
# class TestApplicationCatalog(utils.TestCommand):
#     def setUp(self):
# 
# Path: muranoclient/v1/environments.py
# class Environment(base.Resource):
# class Status(base.Resource):
# class EnvironmentManager(base.ManagerWithFind):
#     def __repr__(self):
#     def data(self, **kwargs):
#     def __repr__(self):
#     def data(self, **kwargs):
#     def list(self, all_tenants=False, tenant_id=None):
#     def create(self, data):
#     def update(self, environment_id, name):
#     def delete(self, environment_id, abandon=False):
#     def get(self, environment_id, session_id=None):
#     def last_status(self, environment_id, session_id):
#     def get_model(self, environment_id, path, session_id=None):
#     def update_model(self, environment_id, data, session_id):


# Path: muranoclient/tests/unit/osc/v1/test_environment.py
import collections
import json
import tempfile
from unittest import mock
from muranoclient.osc.v1 import environment as osc_env
from muranoclient.tests.unit.osc.v1 import fakes
from muranoclient.v1 import environments as api_env

    def test_environment_model_show_basic(self):
        arglist = ['env-id']
        verifylist = [('id', 'env-id')]
        parsed_args = self.check_parser(self.cmd, arglist, verifylist)
        columns, data = self.cmd.take_action(parsed_args)

        # Check that columns are correct
        expected_columns = ('?', 'defaultNetworks', 'name', 'region')
        self.assertEqual(expected_columns, columns)

        # Check that data is correct
        self.assertCountEqual(ENV_MODEL.values(), data)

    def test_environment_model_show_full(self):
        arglist = ['env-id', '--path', '/path', '--session-id', 'sess-id']
        verifylist = [('id', 'env-id'), ('path', '/path'),
                      ('session_id', 'sess-id')]
        parsed_args = self.check_parser(self.cmd, arglist, verifylist)
        columns, data = self.cmd.take_action(parsed_args)

        # Check that columns are correct
        expected_columns = ('?', 'defaultNetworks', 'name', 'region')
        self.assertEqual(expected_columns, columns)

        # Check that data is correct
        self.assertCountEqual(ENV_MODEL.values(), data)


class TestEnvironmentModelEdit(TestEnvironment):
    def setUp(self):

        super(TestEnvironmentModelEdit, self).setUp()