dogecoin/test/functional/test_framework
MarcoFalke b99a1633b2
Merge #19781: test: add parameterized constructor for msg_sendcmpct()
638441928a test: add parameterized constructor for msg_sendcmpct() (Sebastian Falbesoner)

Pull request description:

  While working on the test for #19776 I noticed that creating a `sendcmpct` message is quite cumbersome -- due to the lack of a parameterized constructor, one needs to create an empty (that is, initialized with default values) object and then set the two fields one by one. This PR replaces the default constructor with a parameterized constructor and uses it in the test `p2p_compactblocks.py`, reducing LOC. No need to pollute the namespace with temporary throw-away message objects anymore.

ACKs for top commit:
  guggero:
    Code review ACK 638441928a.
  epson121:
    Code review ACK 638441928a

Tree-SHA512: 3b58d276d714b73abc6cc98d1d52dec5f6026b33f03faaeb7dcbc5d83ac377555179f98b159b2b9ecc8957999c35a1dc082e3c69299c5fde4e35f1bd0587ce9d
2020-09-20 11:13:56 +02:00
..
__init__.py
address.py Revert "[TESTS] Move base58 to own module to break circular dependency" 2020-06-10 11:54:25 -04:00
authproxy.py test: retry when write to a socket fails on macOS 2020-06-25 17:26:20 +07:00
blocktools.py [test] CScriptNum Decode Check as Unit Tests 2020-06-03 07:18:01 -07:00
coverage.py
descriptors.py Output a descriptor in createmultisig and addmultisigaddress 2020-01-30 23:55:36 -05:00
key.py test: Move modinv to util and add unit test 2020-07-16 18:10:43 +02:00
messages.py Merge #19781: test: add parameterized constructor for msg_sendcmpct() 2020-09-20 11:13:56 +02:00
muhash.py test: Add chacha20 test vectors in muhash 2020-07-16 18:10:48 +02:00
netutil.py
p2p.py test: Rename wait until helper to wait_until_helper 2020-08-27 18:50:05 +02:00
script.py refactor: test: use _ variable for unused loop counters 2020-08-06 18:39:33 +02:00
script_util.py test: Remove unused, undocumented and misleading CScript.__add__ 2020-04-22 09:00:56 -04:00
segwit_addr.py
siphash.py
socks5.py
test_framework.py test: Remove unused lock arg from BitcoinTestFramework.wait_until 2020-08-27 18:50:08 +02:00
test_node.py test: Rename wait until helper to wait_until_helper 2020-08-27 18:50:05 +02:00
test_shell.py TestShell: Return self from setup() 2019-11-05 12:55:52 +01:00
util.py Merge #19816: test: Rename wait until helper to wait_until_helper 2020-09-03 12:07:53 +08:00
wallet.py test: Run rpc_txoutproof.py even with wallet disabled 2020-09-09 11:27:28 +02:00
wallet_util.py [tests] move generate_wif_key to wallet_util.py 2020-06-10 12:10:02 -04:00