Check if msg is a valid form of the compiled regex
(reg,msg)
| 400 | |
| 401 | |
| 402 | def is_msg(reg,msg): |
| 403 | ''' |
| 404 | Check if msg is a valid form of the compiled regex |
| 405 | ''' |
| 406 | retval = reg.match(msg.strip()) |
| 407 | |
| 408 | if retval is None: |
| 409 | return False |
| 410 | else: |
| 411 | logger.debug ("Recognized {}".format(msg)) |
| 412 | return True |
| 413 | |
| 414 | |
| 415 | def handle_GoPiGo3_msg(msg): |
no outgoing calls
no test coverage detected