Esempio n. 1
0
 def _create_service_command(self, name, command):
     command_table = self.create_command_table(
         command.get('subcommands', {}), self._create_operation_command)
     service_command = ServiceCommand(name, None)
     service_command._service_model = {}
     service_command._command_table = command_table
     return service_command
Esempio n. 2
0
 def setUp(self):
     self.name = 'foo'
     self.session = FakeSession()
     self.cmd = ServiceCommand(self.name, self.session)