parameters: (self, command, suite_name=None)
docstring: Add Command to the controller queue
docstring_summary: Add Command to the controller queue
docstring_tokens: Add Command to the controller queue
function: def add_command(self, command, suite_name=None):
          """Add Command to the controller queue"""
          if suite_name is None and not command.get('suite_name'):
              suite_name = self.current_suite
          command['suite_name'] = suite_name
          
          if command['params'].get('priority', None):
              priority = command['params'].pop('priority')
          else:
              priority = None
          
          command['type'] = 'command'
              
          if type(priority) is int:
              self.queue.insert(priority, command)
          else:
              self.queue.append(command)
function_tokens: def add_command ( self , command , suite_name = None ) : if suite_name is None and not command . get ( 'suite_name' ) : suite_name = self . current_suite command [ 'suite_name' ] = suite_name if command [ 'params' ] . get ( 'priority' , None ) : priority = command [ 'params' ] . pop ( 'priority' ) else : priority = None command [ 'type' ] = 'command' if type ( priority ) is int : self . queue . insert ( priority , command ) else : self . queue . append ( command )