|
hlcc 2.0.0-beta2+pre1
|
Test client for the telif process. More...
Public Member Functions | |
| def | __init__ (self, args, log_level=logging.DEBUG) |
| def | verify_response (self, response, expected_reply=None, expected_exception=None) |
| Verify if the expected response is contained in the actual 'replies' or in the 'exception' that are in the response dictionary. | |
| def | get_config (self, args) |
| Setup connection and sends GetConfig commands to server. | |
| def | get_config_standard_test (self, args) |
| Setup connection, sends GetConfig commands to server and verifies if response is valid. | |
Static Public Member Functions | |
| def | parse_args (arguments) |
| Static methods implementing MAIN () behavior in the class with parsing of command line arguments This allows testing from modular test the full behavior, including main startup. | |
| def | main (arguments) |
| Execute the main using the command line arguments passed as a list. | |
Public Attributes | |
| service_commands | |
Test client for the telif process.
| def telifsim_get_config.TelifsimClient.__init__ | ( | self, | |
| args, | |||
log_level = logging.DEBUG |
|||
| ) |
| def telifsim_get_config.TelifsimClient.get_config | ( | self, | |
| args | |||
| ) |
Setup connection and sends GetConfig commands to server.
args is the set of arguments passed on the command line.
| def telifsim_get_config.TelifsimClient.get_config_standard_test | ( | self, | |
| args | |||
| ) |
Setup connection, sends GetConfig commands to server and verifies if response is valid.
args is the set of arguments passed on the command line.
|
static |
Execute the main using the command line arguments passed as a list.
If you pass the command line arguments, first remove argv[0] by passing:
|
static |
Static methods implementing MAIN () behavior in the class with parsing of command line arguments This allows testing from modular test the full behavior, including main startup.
Parses the command line arguments passed as a list If you pass the command line arguments, first remove argv[0] by passing:
| def telifsim_get_config.TelifsimClient.verify_response | ( | self, | |
| response, | |||
expected_reply = None, |
|||
expected_exception = None |
|||
| ) |
Verify if the expected response is contained in the actual 'replies' or in the 'exception' that are in the response dictionary.
Returns true if positive.
| telifsim_get_config.TelifsimClient.service_commands |