magic-wormhole/src/wormhole/test
Brian Warner 6be50a4f0a dilate/test_manager: tolerate Mock endpoints
This test was incorrectly exercising a member of the endpoint record returned
by `Manager.get_endpoints()`. In the test environment, the `.listen` Endpoint
is actually a Mock, so calling e.g. `listen()` on `endpoints.listen` returns
another Mock instead of a Deferred. Twisted's `assertNoResult` used to
tolerate this silently, but as of Twisted-19.10 it throws an error, causing
the test to fail.

The fix is to assert that the record has attributes with the right names, but
not assume they behave like normal Endpoints, and not call `.listen()` on
them.

closes #366
2019-12-20 17:03:00 -08:00
..
dilate dilate/test_manager: tolerate Mock endpoints 2019-12-20 17:03:00 -08:00
__init__.py unsplit tests step 1: move files 2016-04-20 18:44:33 -07:00
common.py Correct spelling mistakes 2018-11-23 07:38:21 +00:00
run_trial.py Make code pep-8 compliant 2018-04-21 13:00:08 +05:30
test_args.py Make code pep-8 compliant 2018-04-21 13:00:08 +05:30
test_cli.py tests: cover --verify too, at least for --text 2019-08-17 17:06:22 -07:00
test_eventual.py Make code pep-8 compliant 2018-04-21 13:00:08 +05:30
test_hints.py move parse_hint/encode_hint into _hints.py, add tests 2018-12-23 15:23:27 -05:00
test_hkdf.py Make code pep-8 compliant 2018-04-21 13:00:08 +05:30
test_ipaddrs.py fix/hush some flake8 warnings 2018-11-13 10:21:41 -08:00
test_journal.py Make code pep-8 compliant 2018-04-21 13:00:08 +05:30
test_keys.py add test_keys to nail down symmetric encryption format 2018-08-21 10:12:23 -07:00
test_machines.py terminator: shut down Dilator after everything else stops 2019-02-10 18:01:14 -08:00
test_observer.py observer.py: add EmptyableSet 2018-12-23 15:18:38 -05:00
test_rlcompleter.py Make code pep-8 compliant 2018-04-21 13:00:08 +05:30
test_ssh.py Make code pep-8 compliant 2018-04-21 13:00:08 +05:30
test_tor_manager.py Make code pep-8 compliant 2018-04-21 13:00:08 +05:30
test_transit.py test_transit sometimes fails with EADDRINUSE on travis 2019-02-10 11:22:04 -08:00
test_util.py Make code pep-8 compliant 2018-04-21 13:00:08 +05:30
test_wordlist.py Make code pep-8 compliant 2018-04-21 13:00:08 +05:30
test_wormhole.py Add inlineCallbacks decorator to test_wormholes testcase 2018-11-19 23:38:29 -05:00
test_xfer_util.py Make code pep-8 compliant 2018-04-21 13:00:08 +05:30