(self, command, input)
| 51 | return {b: a for (a, b) in mapping} |
| 52 | |
| 53 | def run_command_with_input(self, command, input): |
| 54 | popen = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE) |
| 55 | (stdout, stderr) = popen.communicate(input.encode()) |
| 56 | return stdout.decode() |
| 57 | |
| 58 | def primary_interace_name(self): |
| 59 | scutil_script = "get State:/Network/Global/IPv4\nd.show\n" |
no test coverage detected