Mercury2 Hardware Manager  1.0dev
The hardware manager component of the Mercury2 ground station suite.
 All Classes Namespaces Functions Variables Pages
hwm.command.tests.utilities.TestCommandHandler Class Reference

A test command handler containing commands designed to test the command system. More...

Inheritance diagram for hwm.command.tests.utilities.TestCommandHandler:

Public Member Functions

def command_generate_error
 Generates a simple command error for testing purposes. More...
 
def command_device_time_restricted
 A command that no users should have permission to execute. More...
 
def command_device_time
 Returns the current UNIX timestamp. More...
 
def settings_device_time
 Returns the metadata for the device_time command. More...
 
def command_requires_session
 This test command requires that the user have an active session. More...
 
def settings_requires_session
 Returns a dictionary containing meta-data about the requires_session command. More...
 

Detailed Description

A test command handler containing commands designed to test the command system.

Member Function Documentation

def hwm.command.tests.utilities.TestCommandHandler.command_device_time (   self,
  active_command 
)

Returns the current UNIX timestamp.

Parameters
active_commandThe command object associated with the executing command.
def hwm.command.tests.utilities.TestCommandHandler.command_device_time_restricted (   self,
  active_command 
)

A command that no users should have permission to execute.

Parameters
active_commandThe command object associated with the executing command.
def hwm.command.tests.utilities.TestCommandHandler.command_generate_error (   self,
  active_command 
)

Generates a simple command error for testing purposes.

Exceptions
ThrowsCommandError for testing.
Parameters
active_commandThe command object associated with the executing command.
def hwm.command.tests.utilities.TestCommandHandler.command_requires_session (   self,
  active_command 
)

This test command requires that the user have an active session.

Exceptions
ThrowsCommandError for testing.
Parameters
active_commandThe command object associated with the executing command.
def hwm.command.tests.utilities.TestCommandHandler.settings_device_time (   self)

Returns the metadata for the device_time command.

Returns
Returns a standard dictionary containing meta-data about the command.
def hwm.command.tests.utilities.TestCommandHandler.settings_requires_session (   self)

Returns a dictionary containing meta-data about the requires_session command.

Returns
Returns a standard dictionary containing meta-data about the command.

The documentation for this class was generated from the following file: