Пример #1
0
    def setUp(self):
        super(TestCommandList, self).setUp()

        self.app.command_manager = mock.Mock()
        self.app.command_manager.get_command_groups.return_value = ['test']
        self.app.command_manager.get_command_names.return_value = [
            'one',
            'cmd two',
        ]

        # Get the command object to test
        self.cmd = osc_module.ListCommand(self.app, None)
Пример #2
0
    def setUp(self):
        super(TestCommandList, self).setUp()

        self.app.command_manager = mock.Mock()
        self.app.command_manager.get_command_groups.return_value = [
            'openstack.common'
        ]
        self.app.command_manager.get_command_names.return_value = [
            'limits show\nextension list'
        ]

        # Get the command object to test
        self.cmd = osc_module.ListCommand(self.app, None)