# Path: neutron_taas/taas_client/tapservice.py
# def _add_updatable_args(parser):
# def _updatable_args2body(parsed_args, body):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
# class TapService(extension.NeutronClientExtension):
# class ListTapService(extension.ClientExtensionList, TapService):
# class CreateTapService(extension.ClientExtensionCreate, TapService):
# class DeleteTapService(extension.ClientExtensionDelete, TapService):
# class ShowTapService(extension.ClientExtensionShow, TapService):
# class UpdateTapService(extension.ClientExtensionUpdate, TapService):


import sys
from unittest import mock
from neutron_taas.taas_client import tapservice
from neutronclient import shell
from neutronclient.tests.unit import test_cli20
#    License for the specific language governing permissions and limitations
#    under the License.
#



class CLITestV20TapServiceJSON(test_cli20.CLITestV20Base):
    resource = 'tap_service'
    resource_plural = '%ss' % resource

    def setUp(self):
        self._mock_extension_loading()
        super(CLITestV20TapServiceJSON, self).setUp()
        self.resources = self.resource_plural
        self.register_non_admin_status_resource(self.resource)

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

    def _mock_extension_loading(self):
        ext_pkg = 'neutronclient.common.extension'
        contrib = self._create_patch(ext_pkg + '._discover_via_entry_points')
        contrib.return_value = [("_tap_service", tapservice)]
        return contrib

    def test_ext_cmd_loaded(self):
        neutron_shell = shell.NeutronShell('2.0')
        extension_cmd = {'tap-service-create': tapservice.CreateTapService,

# Path: neutron_taas/taas_client/tapservice.py
# def _add_updatable_args(parser):
# def _updatable_args2body(parsed_args, body):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
#     def add_known_arguments(self, parser):
#     def args2body(self, parsed_args):
# class TapService(extension.NeutronClientExtension):
# class ListTapService(extension.ClientExtensionList, TapService):
# class CreateTapService(extension.ClientExtensionCreate, TapService):
# class DeleteTapService(extension.ClientExtensionDelete, TapService):
# class ShowTapService(extension.ClientExtensionShow, TapService):
# class UpdateTapService(extension.ClientExtensionUpdate, TapService):


# Path: neutron_taas/tests/unit/taas_client/test_cli20_tapservice.py
import sys
from unittest import mock
from neutron_taas.taas_client import tapservice
from neutronclient import shell
from neutronclient.tests.unit import test_cli20

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



class CLITestV20TapServiceJSON(test_cli20.CLITestV20Base):
    resource = 'tap_service'
    resource_plural = '%ss' % resource

    def setUp(self):
        self._mock_extension_loading()
        super(CLITestV20TapServiceJSON, self).setUp()
        self.resources = self.resource_plural
        self.register_non_admin_status_resource(self.resource)

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

    def _mock_extension_loading(self):
        ext_pkg = 'neutronclient.common.extension'
        contrib = self._create_patch(ext_pkg + '._discover_via_entry_points')
        contrib.return_value = [("_tap_service", tapservice)]
        return contrib

    def test_ext_cmd_loaded(self):
        neutron_shell = shell.NeutronShell('2.0')
        extension_cmd = {'tap-service-create': tapservice.CreateTapService,

                         'tap-service-delete': tapservice.DeleteTapService,