From be29cb59833df6b64c9e7aec7677eb0bd8e6fabb Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sun, 30 Sep 2018 12:58:21 -0700 Subject: [PATCH] Improve dpow tests --- qa/rpc-tests/dpow.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qa/rpc-tests/dpow.py b/qa/rpc-tests/dpow.py index c0036c560..fda3f6b9c 100755 --- a/qa/rpc-tests/dpow.py +++ b/qa/rpc-tests/dpow.py @@ -28,9 +28,10 @@ class DPoWTest(BitcoinTestFramework): result = rpc.getinfo() print result # TODO: actually do notarizations on regtest and test for specific data - assert(result['notarized'] >= 0) - assert(result['notarizedhash']) - assert(result['notarizedtxid']) + # regtest should have no notarization data, this test makes sure we do not see mainnet values as well! + assert_equal(result['notarized'],0) + assert_equal(result['notarizedhash'],'0000000000000000000000000000000000000000000000000000000000000000') + assert_equal(result['notarizedtxid'],'0000000000000000000000000000000000000000000000000000000000000000') if __name__ == '__main__': DPoWTest().main()