'Verify that the transport of a protocol connected to L{StandardIO}
has C{getHost} and C{getPeer} methods.'

def test_hostAndPeer(self):

    p = StandardIOTestProcessProtocol()
    d = p.onCompletion
    self._spawnProcess(p, 'stdio_test_hostpeer')
    def processEnded(reason):
        (host, peer) = p.data[1].splitlines()
        self.assertTrue(host)
        self.assertTrue(peer)
        reason.trap(error.ProcessDone)
    return self._requireFailure(d, processEnded)
