# Path: magnumclient/tests/v1/shell_test_base.py
# FAKE_ENV = {'OS_USERNAME': 'username',
#             'OS_PASSWORD': 'password',
#             'OS_PROJECT_NAME': 'project_name',
#             'OS_AUTH_URL': 'http://no.where/v2.0',
#             'BYPASS_URL': 'http://magnum'}
# class TestCommandLineArgument(utils.TestCase):
#     def setUp(self):
#     def _test_arg_success(self, command, keyword=None):
#     def _test_arg_failure(self, command, error_msg):
# 
# Path: magnumclient/v1/stats.py
# class Stats(base.Resource):
#     def __repr__(self):
#         return "<Stats %s>" % self._info


from unittest import mock
from magnumclient.tests.v1 import shell_test_base
from magnumclient.v1.stats import Stats
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.




class FakeStats(Stats):
    def __init__(self, manager=None, info={}, **kwargs):
        Stats.__init__(self, manager=manager, info=info)
        self.clusters = kwargs.get('clusters', 0)
        self.nodes = kwargs.get('nodes', 0)


class ShellTest(shell_test_base.TestCommandLineArgument):

    def _get_expected_args_list(self, project_id=None):
        expected_args = {}
        expected_args['project_id'] = project_id
        return expected_args

    @mock.patch(
        'magnumclient.v1.stats.StatsManager.list')
    def test_stats_get_success(self, mock_list):

# Path: magnumclient/tests/v1/shell_test_base.py
# FAKE_ENV = {'OS_USERNAME': 'username',
#             'OS_PASSWORD': 'password',
#             'OS_PROJECT_NAME': 'project_name',
#             'OS_AUTH_URL': 'http://no.where/v2.0',
#             'BYPASS_URL': 'http://magnum'}
# class TestCommandLineArgument(utils.TestCase):
#     def setUp(self):
#     def _test_arg_success(self, command, keyword=None):
#     def _test_arg_failure(self, command, error_msg):
# 
# Path: magnumclient/v1/stats.py
# class Stats(base.Resource):
#     def __repr__(self):
#         return "<Stats %s>" % self._info


# Path: magnumclient/tests/v1/test_stats_shell.py
from unittest import mock
from magnumclient.tests.v1 import shell_test_base
from magnumclient.v1.stats import Stats

#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.




class FakeStats(Stats):
    def __init__(self, manager=None, info={}, **kwargs):
        Stats.__init__(self, manager=manager, info=info)
        self.clusters = kwargs.get('clusters', 0)
        self.nodes = kwargs.get('nodes', 0)


class ShellTest(shell_test_base.TestCommandLineArgument):

    def _get_expected_args_list(self, project_id=None):
        expected_args = {}
        expected_args['project_id'] = project_id
        return expected_args

    @mock.patch(
        'magnumclient.v1.stats.StatsManager.list')
    def test_stats_get_success(self, mock_list):

        self._test_arg_success('stats-list')