A test command handler containing commands designed to test the command system.
More...
A test command handler containing commands designed to test the command system.
| def hwm.command.tests.utilities.TestCommandHandler.command_device_time |
( |
|
self, |
|
|
|
active_command |
|
) |
| |
Returns the current UNIX timestamp.
- Parameters
-
| active_command | The 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_command | The 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
-
| Throws | CommandError for testing. |
- Parameters
-
| active_command | The 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
-
| Throws | CommandError for testing. |
- Parameters
-
| active_command | The 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:
- hwm/command/tests/utilities.py