@pytest.mark.usefixtures('init_blockchain')
def test_check_script_with_invalid_tx(eve, wendy, rpconn, transactions):
    '\n    An invalid transaction in this context is one that does not contain a\n    ``vout`` for which the ``hex`` is a valid ``Spool`` verb.\n\n    Args;\n        eve (str): bitcoin address of eve, the sender\n        wendy (str): bitcoin address of wendy, the receiver\n        rpconn (AuthServiceProxy): JSON-RPC connection\n            (:class:`AuthServiceProxy` instance) a local bitcoin regtest\n        transactions (Transactions): :class:`Transactions` instance to\n            communicate to the bitcoin regtest node\n\n    '
    from spool.spoolex import BlockchainSpider
    rpconn.sendtoaddress(eve, 2)
    rpconn.generate(1)
    txid = rpconn.sendfrom('eve', wendy, 1)
    decoded_raw_transfer_tx = transactions.get(txid)
    with pytest.raises(Exception) as exc:
        BlockchainSpider.check_script(decoded_raw_transfer_tx['vouts'])
    assert (exc.value.args[0] == 'Invalid ascribe transaction')
An invalid transaction in this context is one that does not contain a
``vout`` for which the ``hex`` is a valid ``Spool`` verb.

Args;
    eve (str): bitcoin address of eve, the sender
    wendy (str): bitcoin address of wendy, the receiver
    rpconn (AuthServiceProxy): JSON-RPC connection
        (:class:`AuthServiceProxy` instance) a local bitcoin regtest
    transactions (Transactions): :class:`Transactions` instance to
        communicate to the bitcoin regtest node
@pytest.mark.usefixtures('init_blockchain')
def test_check_script_with_invalid_tx(eve, wendy, rpconn, transactions):
    '\n    An invalid transaction in this context is one that does not contain a\n    ``vout`` for which the ``hex`` is a valid ``Spool`` verb.\n\n    Args;\n        eve (str): bitcoin address of eve, the sender\n        wendy (str): bitcoin address of wendy, the receiver\n        rpconn (AuthServiceProxy): JSON-RPC connection\n            (:class:`AuthServiceProxy` instance) a local bitcoin regtest\n        transactions (Transactions): :class:`Transactions` instance to\n            communicate to the bitcoin regtest node\n\n    '
    from spool.spoolex import BlockchainSpider
    rpconn.sendtoaddress(eve, 2)
    rpconn.generate(1)
    txid = rpconn.sendfrom('eve', wendy, 1)
    decoded_raw_transfer_tx = transactions.get(txid)
    with pytest.raises(Exception) as exc:
        BlockchainSpider.check_script(decoded_raw_transfer_tx['vouts'])
    assert (exc.value.args[0] == 'Invalid ascribe transaction')