Added getAccountAddress and tests which seem to fail for some reason

This commit is contained in:
Bill Casarin 2011-05-17 09:46:32 -04:00
parent 6998dc1cc1
commit 1664022bfa
2 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,7 @@ var rpc = require('../jsonrpc')
var bitcoinAPI = {
backupWallet: 'backupwallet',
getAccount: 'getaccount',
getAccountAddress: 'getaccountaddress',
getBalance: 'getbalance',
getBlockCount: 'getblockcount',
getBlockNumber: 'getblocknumber',

View File

@ -34,6 +34,15 @@ vows.describe('api').addBatch({
'is valid': function(account){
assert.ok(account, "Update test variables with a valid address?");
},
'after getting the account\'s address again': {
topic: function(account, client) {
client.getAccountAddress(account, this.callback);
},
'should be the same as the original':
function(address) {
assert.equal(address, test.address);
}
}
},
'getDifficulty': {
topic: function(client) { client.getDifficulty(this.callback); },