(self, hostname, ip)
| 163 | raise Fatal('%r expected STARTED, got %r' % (self.argv, line)) |
| 164 | |
| 165 | def sethostip(self, hostname, ip): |
| 166 | assert(not re.search(r'[^-\w]', hostname)) |
| 167 | assert(not re.search(r'[^0-9.]', ip)) |
| 168 | self.pfile.write('HOST %s,%s\n' % (hostname, ip)) |
| 169 | self.pfile.flush() |
| 170 | |
| 171 | def done(self): |
| 172 | self.pfile.close() |
no test coverage detected