def testHostAndPeer(self):
p = StandardIOTestProcessProtocol()
d = p.onCompletion
self._spawnProcess(p, 'stdio_test_hostpeer.py')
def processEnded(reason):
hostpeer = p.data.pop(1)
self.assertEquals(p.data, {})
host, peer = hostpeer.splitlines()
self.failUnless(host)
self.failUnless(peer)
reason.trap(error.ProcessDone)
return self._requireFailure(d, processEnded)
评论列表
文章目录