# 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
    },
    "region": "RegionOne",
    "name": "env",
    "?": {
        "updated": "2016-10-03 09:33:41.039789",
        "type": "io.murano.Environment",
        "id": "1234"
    }
}


class TestEnvironment(fakes.TestApplicationCatalog):
    def setUp(self):
        super(TestEnvironment, self).setUp()
        self.environment_mock = self.app.client_manager.application_catalog.\
            environments
        self.session_mock = self.app.client_manager.application_catalog.\
            sessions
        self.services_mock = self.app.client_manager.application_catalog.\
            services
        self.environment_mock.reset_mock()


class TestListEnvironment(TestEnvironment):
    def setUp(self):
        super(TestListEnvironment, self).setUp()
        self.environment_mock.list.return_value = [api_env.Environment(None,
                                                   ENV_INFO)]

        # Command to test

# 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

    },
    "region": "RegionOne",
    "name": "env",
    "?": {
        "updated": "2016-10-03 09:33:41.039789",
        "type": "io.murano.Environment",
        "id": "1234"
    }
}


class TestEnvironment(fakes.TestApplicationCatalog):
    def setUp(self):
        super(TestEnvironment, self).setUp()
        self.environment_mock = self.app.client_manager.application_catalog.\
            environments
        self.session_mock = self.app.client_manager.application_catalog.\
            sessions
        self.services_mock = self.app.client_manager.application_catalog.\
            services
        self.environment_mock.reset_mock()


class TestListEnvironment(TestEnvironment):
    def setUp(self):
        super(TestListEnvironment, self).setUp()
        self.environment_mock.list.return_value = [api_env.Environment(None,
                                                   ENV_INFO)]

        # Command to test

        self.cmd = osc_env.ListEnvironments(self.app, None)