@pytest.mark.integration
def test_send_invalid_transaction(test_http_client):
    'Test sending an invalid transaction to localnet.'
    with pytest.raises(RPCException) as exc_info:
        test_http_client.send_raw_transaction(b'foo')
    assert (exc_info.value.args[0].keys() == RPCError.__annotations__.keys())
Test sending an invalid transaction to localnet.
@pytest.mark.integration
def test_send_invalid_transaction(test_http_client):
    
    with pytest.raises(RPCException) as exc_info:
        test_http_client.send_raw_transaction(b'foo')
    assert (exc_info.value.args[0].keys() == RPCError.__annotations__.keys())