1
# -*- mode: python; coding: utf-8 -*-
5
babelTest = RemoteTestFactory('babel.esi.uclm.es')
8
server = babelTest('nc -lp 2000 -e /bin/cat',
10
server.pre += Not(OpenPort(2000, babelTest.host))
12
client = Test('echo hola | nc %s 2000' % babelTest.host,
16
timeout=1, signal=signal.SIGINT,
18
client.post += FileContains(client.stdout, "hola")