dash/test/functional/test_framework
MarcoFalke 7c163b1ffd Merge #11182: [tests] Add P2P interface to TestNode
32ae82f5c [tests] use TestNode p2p connection in tests (John Newbery)
5e5725cc2 [tests] Add p2p connection to TestNode (John Newbery)
b86c1cd20 [tests] fix TestNode.__getattr__() method (John Newbery)

Pull request description:

  Final two steps of #10082 : Adding the "mininode" P2P interface to `TestNode`

  This PR adds the mininode P2P interface to `TestNode`. It simplifies the process for opening a P2P connection to the node-under-test from this:

  ```python
  node0 = NodeConnCB()
  connections = []
  connections.append(NodeConn('127.0.0.1', p2p_port(0), self.nodes[0], node0))
  node0.add_connection(connections[0])
  ```

  to this:

  ```python
  self.nodes[0].add_p2p_connection(p2p_conn_type=NodeConnCB)
  ```

  The first commit adds the infrastructure to `test_node.py`. The second updates the individual test cases to use it. Can be separated if this is too much review for one PR.

Tree-SHA512: 44f1a6320f44eefc70489ae8350c6a16ad1a6035e4b9b7bafbdf19f5905ed0e2db85beaaf4758eec3059dd89a375a47a45352a029f39f57a86ab38a9ae66650e
2019-10-03 14:04:54 +02:00
..
__init__.py
authproxy.py Merge #11277: Fix uninitialized URI in batch RPC requests 2019-09-30 08:33:16 +02:00
bignum.py
blockstore.py
blocktools.py
comptool.py Merge #11068: qa: Move wait_until to util 2019-09-24 16:58:03 +02:00
coverage.py Merge #11277: Fix uninitialized URI in batch RPC requests 2019-09-30 08:33:16 +02:00
key.py
mininode.py Merge #11472: qa: Make tmpdir option an absolute path, misc cleanup 2019-09-29 12:42:14 +02:00
netutil.py
script.py
siphash.py
socks5.py Merge #10047: [tests] Remove unused variables and imports 2019-05-21 08:52:44 -05:00
test_framework.py Add more logging to DashTestFramework (#3130) 2019-10-03 13:45:18 +03:00
test_node.py Merge #11182: [tests] Add P2P interface to TestNode 2019-10-03 14:04:54 +02:00
util.py scripted-diff: rename assert_raises_jsonrpc to assert_raises_rpc error 2019-09-29 12:42:13 +02:00