# Path: networking_sfc/cli/port_pair_group.py
# PORT_PAIR_GROUP_RESOURCE = 'port_pair_group'
# def get_port_pair_group_id(client, id_or_name):
# def add_common_arguments(parser):
# def update_common_args2body(client, body, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
# class PortPairGroup(extension.NeutronClientExtension):
# class PortPairGroupCreate(extension.ClientExtensionCreate, PortPairGroup):
# class PortPairGroupUpdate(extension.ClientExtensionUpdate, PortPairGroup):
# class PortPairGroupDelete(extension.ClientExtensionDelete, PortPairGroup):
# class PortPairGroupList(extension.ClientExtensionList, PortPairGroup):
# class PortPairGroupShow(extension.ClientExtensionShow, PortPairGroup):


import sys
from unittest import mock
from neutronclient import shell
from neutronclient.tests.unit import test_cli20
from networking_sfc.cli import port_pair_group as pg
from oslo_utils import uuidutils
#    License for the specific language governing permissions and limitations
#    under the License.
#





pp1 = uuidutils.generate_uuid()
pp2 = uuidutils.generate_uuid()
pp3 = uuidutils.generate_uuid()
pp4 = uuidutils.generate_uuid()


class CLITestV20PortGroupExtensionJSON(test_cli20.CLITestV20Base):
    def setUp(self):
        super(CLITestV20PortGroupExtensionJSON, self).setUp()
        self._mock_extension_loading()
        self.register_non_admin_status_resource('port_pair_group')

    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_pair_group = self._create_patch(ext_pkg +
                                             '._discover_via_entry_points')

# Path: networking_sfc/cli/port_pair_group.py
# PORT_PAIR_GROUP_RESOURCE = 'port_pair_group'
# def get_port_pair_group_id(client, id_or_name):
# def add_common_arguments(parser):
# def update_common_args2body(client, body, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
# class PortPairGroup(extension.NeutronClientExtension):
# class PortPairGroupCreate(extension.ClientExtensionCreate, PortPairGroup):
# class PortPairGroupUpdate(extension.ClientExtensionUpdate, PortPairGroup):
# class PortPairGroupDelete(extension.ClientExtensionDelete, PortPairGroup):
# class PortPairGroupList(extension.ClientExtensionList, PortPairGroup):
# class PortPairGroupShow(extension.ClientExtensionShow, PortPairGroup):


# Path: networking_sfc/tests/unit/cli/test_port_pair_group.py
import sys
from unittest import mock
from neutronclient import shell
from neutronclient.tests.unit import test_cli20
from networking_sfc.cli import port_pair_group as pg
from oslo_utils import uuidutils

#    License for the specific language governing permissions and limitations
#    under the License.
#





pp1 = uuidutils.generate_uuid()
pp2 = uuidutils.generate_uuid()
pp3 = uuidutils.generate_uuid()
pp4 = uuidutils.generate_uuid()


class CLITestV20PortGroupExtensionJSON(test_cli20.CLITestV20Base):
    def setUp(self):
        super(CLITestV20PortGroupExtensionJSON, self).setUp()
        self._mock_extension_loading()
        self.register_non_admin_status_resource('port_pair_group')

    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_pair_group = self._create_patch(ext_pkg +
                                             '._discover_via_entry_points')

        port_pair_group.return_value = [("port_pair_group", pg)]