(msg, result)
| 87 | logging.basicConfig(level=logging.DEBUG) |
| 88 | |
| 89 | def writeProgressBar(msg, result): |
| 90 | output = "[%-6s]\n"%"Failed" |
| 91 | if msg is not None: |
| 92 | output = "%-30s"%msg |
| 93 | elif result is True: |
| 94 | output = "[%-2s]\n"%"OK" |
| 95 | elif result is False: |
| 96 | output = "[%-6s]\n"%"Failed" |
| 97 | sys.stdout.write(output) |
| 98 | sys.stdout.flush() |
| 99 | |
| 100 | class UnknownSystemException(Exception): |
| 101 | "This Exception is raised if the current operating environment is unknown" |
no test coverage detected