コード例 #1
0
 def _create_operation_command(self, name, command):
     argument_table = self.create_argument_table(
         command.get('arguments', []))
     mock_operation = mock.Mock(spec=OperationModel)
     mock_operation.deprecated = False
     operation = ServiceOperation(name, 'parent', None, mock_operation,
                                  None)
     operation._arg_table = argument_table
     return operation
コード例 #2
0
ファイル: test_completer.py プロジェクト: avinashkolla/AWSCLI
 def _create_operation_command(self, name, command):
     argument_table = self.create_argument_table(
         command.get('arguments', []))
     operation = ServiceOperation(name, 'parent', None, {}, None)
     operation._arg_table = argument_table
     return operation