(host)
| 23 | import socket |
| 24 | |
| 25 | def CheckLocalHost(host): |
| 26 | hostname = socket.gethostname() |
| 27 | if host == hostname: |
| 28 | return True |
| 29 | ip = socket.gethostbyname(hostname) |
| 30 | if host == ip: |
| 31 | return True |
| 32 | return False |
| 33 | |
| 34 | def RunWithRetunCode(command): |
| 35 | try: |
no outgoing calls
no test coverage detected