def successful_signing_test(self):
    'Create and sign a valid raw transaction with one input.\n\n        Expected results:\n\n        1) The transaction has a complete set of signatures\n        2) No script verification error occurred'
    privKeys = ['EXAMPLE_KEY']
    inputs = [{'txid': 'EXAMPLE_KEY', 'vout': 0, 'scriptPubKey': 'EXAMPLE_KEY'}]
    outputs = {'EXAMPLE_KEY': 0.1}
    rawTx = self.nodes[0].createrawtransaction(inputs, outputs)
    rawTxSigned = self.nodes[0].signrawtransaction(rawTx, inputs, privKeys)
    assert ('complete' in rawTxSigned)
    assert_equal(rawTxSigned['complete'], True)
    assert ('errors' not in rawTxSigned)
Create and sign a valid raw transaction with one input.

Expected results:

1) The transaction has a complete set of signatures
2) No script verification error occurred
def successful_signing_test(self):
    'Create and sign a valid raw transaction with one input.\n\n        Expected results:\n\n        1) The transaction has a complete set of signatures\n        2) No script verification error occurred'
    privKeys = ['EXAMPLE_KEY']
    inputs = [{'txid': 'EXAMPLE_KEY', 'vout': 0, 'scriptPubKey': 'EXAMPLE_KEY'}]
    outputs = {'EXAMPLE_KEY': 0.1}
    rawTx = self.nodes[0].createrawtransaction(inputs, outputs)
    rawTxSigned = self.nodes[0].signrawtransaction(rawTx, inputs, privKeys)
    assert ('complete' in rawTxSigned)
    assert_equal(rawTxSigned['complete'], True)
    assert ('errors' not in rawTxSigned)