(self, hostname, ip)
| 455 | raise Fatal('%r expected STARTED, got %r' % (self.argv, line)) |
| 456 | |
| 457 | def sethostip(self, hostname, ip): |
| 458 | assert not re.search(br'[^-\w\.]', hostname) |
| 459 | assert not re.search(br'[^0-9.]', ip) |
| 460 | self.pfile.write(b'HOST %s,%s\n' % (hostname, ip)) |
| 461 | self.pfile.flush() |
| 462 | |
| 463 | def done(self): |
| 464 | self.pfile.close() |
no test coverage detected