Changeset View
Changeset View
Standalone View
Standalone View
test/functional/example_test.py
Show All 9 Lines | |||||
is testing and *how* it's being tested | is testing and *how* it's being tested | ||||
""" | """ | ||||
# Imports should be in PEP8 ordering (std library first, then third party | # Imports should be in PEP8 ordering (std library first, then third party | ||||
# libraries then local imports). | # libraries then local imports). | ||||
from collections import defaultdict | from collections import defaultdict | ||||
# Avoid wildcard * imports if possible | # Avoid wildcard * imports if possible | ||||
from test_framework.blocktools import (create_block, create_coinbase) | from test_framework.blocktools import (create_block, create_coinbase) | ||||
from test_framework.messages import (CInv, msg_block, msg_getdata) | |||||
from test_framework.mininode import ( | from test_framework.mininode import ( | ||||
CInv, | |||||
P2PInterface, | P2PInterface, | ||||
mininode_lock, | mininode_lock, | ||||
msg_block, | |||||
msg_getdata, | |||||
network_thread_join, | network_thread_join, | ||||
network_thread_start, | network_thread_start, | ||||
) | ) | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import ( | from test_framework.util import ( | ||||
assert_equal, | assert_equal, | ||||
connect_nodes, | connect_nodes, | ||||
wait_until, | wait_until, | ||||
▲ Show 20 Lines • Show All 201 Lines • Show Last 20 Lines |