Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/util.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2014-2019 The Bitcoin Core developers | # Copyright (c) 2014-2019 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. | ||||
"""Helpful routines for regression testing.""" | """Helpful routines for regression testing.""" | ||||
from base64 import b64encode | |||||
from binascii import unhexlify | |||||
from decimal import Decimal, ROUND_DOWN | |||||
from io import BytesIO | |||||
from subprocess import CalledProcessError | |||||
import inspect | import inspect | ||||
import json | import json | ||||
import logging | import logging | ||||
import os | import os | ||||
import random | import random | ||||
import re | import re | ||||
import time | import time | ||||
import unittest | import unittest | ||||
from base64 import b64encode | |||||
from binascii import unhexlify | |||||
from decimal import ROUND_DOWN, Decimal | |||||
from io import BytesIO | |||||
from subprocess import CalledProcessError | |||||
from . import coverage | from . import coverage | ||||
from .authproxy import AuthServiceProxy, JSONRPCException | from .authproxy import AuthServiceProxy, JSONRPCException | ||||
logger = logging.getLogger("TestFramework.utils") | logger = logging.getLogger("TestFramework.utils") | ||||
# Assert functions | # Assert functions | ||||
################## | ################## | ||||
▲ Show 20 Lines • Show All 617 Lines • Show Last 20 Lines |