dash/test/functional/test_framework
John Newbery 52e15aa4d0 Adds helper functions to NodeConnCB
This commit adds some helper functions to NodeConnCB which are useful
for many tests:

- NodeConnCB now keeps track of the number of each message type that
it's received and the most recent message of each type. Many tests
assert on the most recent block, tx or reject message.
- NodeConnCB now keeps track of its connection state by setting a
connected boolean in on_open() and on_close()
- NodeConnCB now has wait_for_block, wait_for_getdata,
wait_for_getheaders, wait_for_inv and wait_for_verack methods

I have updated the individual test cases to make sure that there are no
namespace problems that cause them to fail with these new definitions.
Future commits will remove the duplicate code.
2017-04-18 15:25:01 -04:00
..
__init__.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
address.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
authproxy.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
bignum.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
blockstore.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
blocktools.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
comptool.py Adds helper functions to NodeConnCB 2017-04-18 15:25:01 -04:00
coverage.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
key.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
mininode.py Adds helper functions to NodeConnCB 2017-04-18 15:25:01 -04:00
netutil.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
script.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
siphash.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
socks5.py [tests] Remove unused and duplicate imports 2017-03-22 17:49:23 +01:00
test_framework.py Print out the final 1000 lines of test_framework.log if test fails 2017-03-27 19:34:25 -04:00
util.py Reduce spammy test logging 2017-04-07 22:16:41 -04:00