# Path: muranoclient/osc/v1/action.py
# LOG = logging.getLogger(__name__)
# class StaticActionCall(command.ShowOne):
#     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/static_actions.py
# class StaticActionResult(object):
# class StaticActionManager(object):
#     def __init__(self, result, exception=None):
#     def get_result(self):
#     def check_result(self):
#     def __init__(self, api):
#     def call(self, arguments):


from unittest import mock
from muranoclient.osc.v1 import action as osc_action
from muranoclient.tests.unit.osc.v1 import fakes
from muranoclient.v1 import static_actions as api_static_actions
        mock_util.return_value = 'result'

        arglist = ['class.name', 'method.name']
        verifylist = [('class_name', 'class.name'),
                      ('method_name', 'method.name')]

        parsed_args = self.check_parser(self.cmd, arglist, verifylist)

        columns, data = self.cmd.take_action(parsed_args)

        # Check that columns are correct
        expected_columns = ['Static action result']
        self.assertEqual(expected_columns, columns)

        # Check that data is correct
        expected_data = ['result']
        self.assertEqual(expected_data, data)

    @mock.patch('osc_lib.utils.get_item_properties')
    def test_static_action_call_full(self, mock_util):
        mock_util.return_value = 'result'

        arglist = ['class.name', 'method.name',
                   '--arguments', 'food=spam', 'parrot=dead',
                   '--package-name', 'package.name',
                   '--class-version', '>1']
        verifylist = [('class_name', 'class.name'),
                      ('method_name', 'method.name'),
                      ('arguments', ['food=spam', 'parrot=dead']),
                      ('package_name', 'package.name'),

# Path: muranoclient/osc/v1/action.py
# LOG = logging.getLogger(__name__)
# class StaticActionCall(command.ShowOne):
#     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/static_actions.py
# class StaticActionResult(object):
# class StaticActionManager(object):
#     def __init__(self, result, exception=None):
#     def get_result(self):
#     def check_result(self):
#     def __init__(self, api):
#     def call(self, arguments):


# Path: muranoclient/tests/unit/osc/v1/test_action.py
from unittest import mock
from muranoclient.osc.v1 import action as osc_action
from muranoclient.tests.unit.osc.v1 import fakes
from muranoclient.v1 import static_actions as api_static_actions

        mock_util.return_value = 'result'

        arglist = ['class.name', 'method.name']
        verifylist = [('class_name', 'class.name'),
                      ('method_name', 'method.name')]

        parsed_args = self.check_parser(self.cmd, arglist, verifylist)

        columns, data = self.cmd.take_action(parsed_args)

        # Check that columns are correct
        expected_columns = ['Static action result']
        self.assertEqual(expected_columns, columns)

        # Check that data is correct
        expected_data = ['result']
        self.assertEqual(expected_data, data)

    @mock.patch('osc_lib.utils.get_item_properties')
    def test_static_action_call_full(self, mock_util):
        mock_util.return_value = 'result'

        arglist = ['class.name', 'method.name',
                   '--arguments', 'food=spam', 'parrot=dead',
                   '--package-name', 'package.name',
                   '--class-version', '>1']
        verifylist = [('class_name', 'class.name'),
                      ('method_name', 'method.name'),
                      ('arguments', ['food=spam', 'parrot=dead']),
                      ('package_name', 'package.name'),

                      ('class_version', '>1')]