Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/test_framework.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2014-2016 The Bitcoin Core developers | # Copyright (c) 2014-2016 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
"""Base class for RPC testing.""" | """Base class for RPC testing.""" | ||||
import argparse | |||||
from collections import deque | from collections import deque | ||||
from enum import Enum | from enum import Enum | ||||
import logging | import logging | ||||
import argparse | |||||
import os | import os | ||||
import pdb | import pdb | ||||
import shutil | import shutil | ||||
import sys | import sys | ||||
import tempfile | import tempfile | ||||
import time | import time | ||||
import traceback | import traceback | ||||
from .authproxy import JSONRPCException | from .authproxy import JSONRPCException | ||||
from . import coverage | from . import coverage | ||||
from .test_node import TestNode | from .test_node import TestNode | ||||
from .util import ( | from .util import ( | ||||
MAX_NODES, | |||||
PortSeed, | |||||
assert_equal, | assert_equal, | ||||
check_json_precision, | check_json_precision, | ||||
connect_nodes_bi, | connect_nodes_bi, | ||||
disconnect_nodes, | disconnect_nodes, | ||||
initialize_datadir, | initialize_datadir, | ||||
log_filename, | log_filename, | ||||
MAX_NODES, | |||||
p2p_port, | p2p_port, | ||||
PortSeed, | |||||
rpc_port, | rpc_port, | ||||
set_node_times, | set_node_times, | ||||
sync_blocks, | sync_blocks, | ||||
sync_mempools, | sync_mempools, | ||||
) | ) | ||||
class TestStatus(Enum): | class TestStatus(Enum): | ||||
▲ Show 20 Lines • Show All 480 Lines • Show Last 20 Lines |