@pytest.mark.usefixtures('init_blockchain')
def test_check_script(rpconn, piece_hashes, spool_regtest, transactions):
    '\n    Test :staticmethod:`check_script`.\n\n    Args;\n        alice (str): bitcoin address of alice, the sender\n        bob (str): bitcoin address of bob, the receiver\n        rpconn (AuthServiceProxy): JSON-RPC connection\n            (:class:`AuthServiceProxy` instance) to bitcoin regtest\n        transactions (Transactions): :class:`Transactions` instance to\n            communicate to the bitcoin regtest node\n\n    '
    from spool import Spool
    from spool.spoolex import BlockchainSpider
    sender_password = uuid1().hex.encode('utf-8')
    sender_wallet = BIP32Node.from_master_secret(sender_password, netcode='XTN')
    sender_address = sender_wallet.bitcoin_address()
    rpconn.importaddress(sender_address)
    rpconn.sendtoaddress(sender_address, (Spool.FEE / 100000000))
    rpconn.sendtoaddress(sender_address, (Spool.TOKEN / 100000000))
    rpconn.sendtoaddress(sender_address, (Spool.TOKEN / 100000000))
    rpconn.sendtoaddress(sender_address, (Spool.TOKEN / 100000000))
    rpconn.generate(1)
    receiver_address = rpconn.getnewaddress()
    txid = spool_regtest.transfer(('', sender_address), receiver_address, piece_hashes, sender_password, 5, min_confirmations=1)
    verb = BlockchainSpider.check_script(transactions.get(txid)['vouts'])
    assert (verb == b'ASCRIBESPOOL01TRANSFER5')
Test :staticmethod:`check_script`.

Args;
    alice (str): bitcoin address of alice, the sender
    bob (str): bitcoin address of bob, the receiver
    rpconn (AuthServiceProxy): JSON-RPC connection
        (:class:`AuthServiceProxy` instance) to bitcoin regtest
    transactions (Transactions): :class:`Transactions` instance to
        communicate to the bitcoin regtest node
@pytest.mark.usefixtures('init_blockchain')
def test_check_script(rpconn, piece_hashes, spool_regtest, transactions):
    '\n    Test :staticmethod:`check_script`.\n\n    Args;\n        alice (str): bitcoin address of alice, the sender\n        bob (str): bitcoin address of bob, the receiver\n        rpconn (AuthServiceProxy): JSON-RPC connection\n            (:class:`AuthServiceProxy` instance) to bitcoin regtest\n        transactions (Transactions): :class:`Transactions` instance to\n            communicate to the bitcoin regtest node\n\n    '
    from spool import Spool
    from spool.spoolex import BlockchainSpider
    sender_password = uuid1().hex.encode('utf-8')
    sender_wallet = BIP32Node.from_master_secret(sender_password, netcode='XTN')
    sender_address = sender_wallet.bitcoin_address()
    rpconn.importaddress(sender_address)
    rpconn.sendtoaddress(sender_address, (Spool.FEE / 100000000))
    rpconn.sendtoaddress(sender_address, (Spool.TOKEN / 100000000))
    rpconn.sendtoaddress(sender_address, (Spool.TOKEN / 100000000))
    rpconn.sendtoaddress(sender_address, (Spool.TOKEN / 100000000))
    rpconn.generate(1)
    receiver_address = rpconn.getnewaddress()
    txid = spool_regtest.transfer((, sender_address), receiver_address, piece_hashes, sender_password, 5, min_confirmations=1)
    verb = BlockchainSpider.check_script(transactions.get(txid)['vouts'])
    assert (verb == b'ASCRIBESPOOL01TRANSFER5')