Пример #1
0
def test_vector(tx_name, method, inputs, outputs, error, records,
                counterpartyd_db):
    if method == 'parse':
        util_test.insert_transaction(inputs[0], counterpartyd_db)
        inputs += (inputs[0]['data'][4:], )  # message arg
    util_test.check_ouputs(tx_name, method, inputs, outputs, error, records,
                           counterpartyd_db)
Пример #2
0
def test_vector(tx_name, method, inputs, outputs, error, records,
                counterpartyd_db):
    """Test the outputs of unit test vector. If testing parse, execute the transaction data on test db."""
    if method == 'parse':
        util_test.insert_transaction(inputs[0], counterpartyd_db)
        inputs += (inputs[0]['data'][4:], )  # message arg
    util_test.check_outputs(tx_name, method, inputs, outputs, error, records,
                            counterpartyd_db)
Пример #3
0
def test_vector(tx_name, method, inputs, outputs, error, records, counterpartyd_db):
    if method == 'parse':
        util_test.insert_transaction(inputs[0], counterpartyd_db)
        inputs += (inputs[0]['data'][4:],) # message arg
    util_test.check_ouputs(tx_name, method, inputs, outputs, error, records, counterpartyd_db)
Пример #4
0
def test_vector(tx_name, method, inputs, outputs, error, records, comment, server_db):
    """Test the outputs of unit test vector. If testing parse, execute the transaction data on test db."""
    if method == 'parse':
        util_test.insert_transaction(inputs[0], server_db)
        inputs += (inputs[0]['data'][4:],) # message arg
    util_test.check_outputs(tx_name, method, inputs, outputs, error, records, comment, server_db)