(self, service)
| 32 | return dict([re.findall(r"([^:]+): (.*)", line)[0] for line in state]) |
| 33 | |
| 34 | def enable_proxy_for_service(self, service): |
| 35 | print(f"Enabling proxy on {service}...") |
| 36 | for subcommand in ["-setwebproxy", "-setsecurewebproxy"]: |
| 37 | self.run_networksetup_command( |
| 38 | subcommand, service, "127.0.0.1", str(self.port) |
| 39 | ) |
| 40 | |
| 41 | def disable_proxy_for_service(self, service): |
| 42 | print(f"Disabling proxy on {service}...") |
no test coverage detected