magic-wormhole/tests
Brian Warner 34f4c284b0 txwormhole: use websockets, not HTTP
This should speed up the protocol, since we don't have to wait for
acks (HTTP responses) unless we really want to. It also makes it easier
to have multiple messages in flight at once. The protocol is still
compatible with the old HTTP version (which is still used by the
blocking flavor), but requires an updated Rendezvous server that speaks
websockets.

set_code() no longer touches the network: it just stores the code and
channelid for later. We hold off doing 'claim' and 'watch' until we need
messages, triggered by get_verifier() or get_data() or send_data().

We check for error before sleeping, not just after waking. This makes it
possible to detect a WrongPasswordError in get_data() even if the other
side hasn't done a corresponding send_data(), as long as the other side
finished PAKE (and thus sent a CONFIRM message). The unit test was doing
just this, and was hanging.
2016-04-20 18:14:47 -07:00
..
__init__.py move tests step 1: rename files 2016-04-18 16:45:03 -07:00
common.py Add WebSocket-based rendezvous protocol frontend 2016-04-18 18:03:26 -07:00
test_blocking.py tests: internal changes 2016-04-18 17:58:40 -07:00
test_hkdf.py use "hkdf" from PyPI instead of wormhole.hkdf 2016-04-18 16:49:29 -07:00
test_interop.py move tests step 2: fix imports, setup.py, tox.ini 2016-04-18 16:45:03 -07:00
test_load.py move tests step 1: rename files 2016-04-18 16:45:03 -07:00
test_progress.py move tests step 1: rename files 2016-04-18 16:45:03 -07:00
test_scripts.py move tests step 2: fix imports, setup.py, tox.ini 2016-04-18 16:45:03 -07:00
test_server.py rendezvous: allow both allocate and claim (of the same channelid) 2016-04-20 11:20:53 -07:00
test_transit_twisted.py move tests step 2: fix imports, setup.py, tox.ini 2016-04-18 16:45:03 -07:00
test_twisted.py txwormhole: use websockets, not HTTP 2016-04-20 18:14:47 -07:00