From de8905adf204c42bba810802f82b98f7b3dd26dc Mon Sep 17 00:00:00 2001 From: Gloria Zhao Date: Thu, 26 Mar 2020 13:57:53 -0700 Subject: test: use unittest and test_runner for test framework unit testing Test the test_framework, but don't use test_framework objects or functions to test itself Use python unittest library and put test_framework's unit tests inside their respective files Add the filename to TEST_FRAMEWORK_MODULES in test_runner Aggregate all test_framework tests into one TestSuite to run before the functional tests in test_runner Delete framework_test_script, move test_bn2vch to script.py and add to TEST_FRAMEWORK_MODULES in test_runner --- test/functional/test_framework/script.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'test/functional/test_framework/script.py') diff --git a/test/functional/test_framework/script.py b/test/functional/test_framework/script.py index 92725dfcf4..f490804bd9 100644 --- a/test/functional/test_framework/script.py +++ b/test/functional/test_framework/script.py @@ -8,6 +8,7 @@ This file is modified from python-bitcoinlib. """ import hashlib import struct +import unittest from .messages import ( CTransaction, @@ -715,3 +716,25 @@ def SegwitV0SignatureHash(script, txTo, inIdx, hashtype, amount): ss += struct.pack("