# Path: networking_sfc/cli/port_chain.py
# PORT_CHAIN_RESOURCE = 'port_chain'
# class PortChain(extension.NeutronClientExtension):
# class PortChainCreate(extension.ClientExtensionCreate, PortChain):
# class PortChainUpdate(extension.ClientExtensionUpdate, PortChain):
# class PortChainDelete(extension.ClientExtensionDelete, PortChain):
# class PortChainList(extension.ClientExtensionList, PortChain):
# class PortChainShow(extension.ClientExtensionShow, PortChain):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):


import sys
from unittest import mock
from neutronclient import shell
from neutronclient.tests.unit import test_cli20
from networking_sfc.cli import port_chain as pc
from oslo_utils import uuidutils
#





FAKE_port_pair_group1_UUID = uuidutils.generate_uuid()
FAKE_port_pair_group2_UUID = uuidutils.generate_uuid()
FAKE_FC1_UUID = uuidutils.generate_uuid()
FAKE_FC2_UUID = uuidutils.generate_uuid()
FAKE_PARAM1_UUID = uuidutils.generate_uuid()
FAKE_PARAM2_UUID = uuidutils.generate_uuid()


class CLITestV20PortChainExtensionJSON(test_cli20.CLITestV20Base):
    def setUp(self):
        super(CLITestV20PortChainExtensionJSON, self).setUp()
        self._mock_extension_loading()
        self.register_non_admin_status_resource('port_chain')

    def _create_patch(self, name, func=None):
        patcher = mock.patch(name)
        thing = patcher.start()
        self.addCleanup(patcher.stop)
        return thing

    def _mock_extension_loading(self):
        ext_pkg = 'neutronclient.common.extension'
        port_chain = self._create_patch(ext_pkg +
                                        '._discover_via_entry_points')

# Path: networking_sfc/cli/port_chain.py
# PORT_CHAIN_RESOURCE = 'port_chain'
# class PortChain(extension.NeutronClientExtension):
# class PortChainCreate(extension.ClientExtensionCreate, PortChain):
# class PortChainUpdate(extension.ClientExtensionUpdate, PortChain):
# class PortChainDelete(extension.ClientExtensionDelete, PortChain):
# class PortChainList(extension.ClientExtensionList, PortChain):
# class PortChainShow(extension.ClientExtensionShow, PortChain):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):


# Path: networking_sfc/tests/unit/cli/test_port_chain.py
import sys
from unittest import mock
from neutronclient import shell
from neutronclient.tests.unit import test_cli20
from networking_sfc.cli import port_chain as pc
from oslo_utils import uuidutils

#





FAKE_port_pair_group1_UUID = uuidutils.generate_uuid()
FAKE_port_pair_group2_UUID = uuidutils.generate_uuid()
FAKE_FC1_UUID = uuidutils.generate_uuid()
FAKE_FC2_UUID = uuidutils.generate_uuid()
FAKE_PARAM1_UUID = uuidutils.generate_uuid()
FAKE_PARAM2_UUID = uuidutils.generate_uuid()


class CLITestV20PortChainExtensionJSON(test_cli20.CLITestV20Base):
    def setUp(self):
        super(CLITestV20PortChainExtensionJSON, self).setUp()
        self._mock_extension_loading()
        self.register_non_admin_status_resource('port_chain')

    def _create_patch(self, name, func=None):
        patcher = mock.patch(name)
        thing = patcher.start()
        self.addCleanup(patcher.stop)
        return thing

    def _mock_extension_loading(self):
        ext_pkg = 'neutronclient.common.extension'
        port_chain = self._create_patch(ext_pkg +
                                        '._discover_via_entry_points')

        port_chain.return_value = [("port_chain", pc)]