This repository was archived by the owner on Nov 23, 2017. It is now read-only.
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
[Feature request] Add test transports (in memory) #179
Open
Description
for acceptance testing protocol client<>server setups it tends to be really
helpful to line them up with transports in a single process, so one can operate
on all involved items but without involving the os and with having the
capability to log the sequence of interactions for each connection
i could imagine something like this p:
...
transports = TestTransports(loop, lambda: serverprotocol)
client = yield from transports.connect(make_client)
yield from client.send_file('x', 'some_content')
client2 = yield from transports.connect(make_client)
content = yield from client2.get_file('x')
assert content == 'some_content'
Original issue reported on code.google.com by ronny.pfannschmidt
on 28 Jun 2014 at 7:34