def check_balances(denom, zpny_bal, pny_bal):
    zpny_bal -= denom
    assert_equal(self.nodes[2].getzerocoinbalance()['Total'], zpny_bal)
    pny_bal += denom
    wi = self.nodes[2].getwalletinfo()
    assert_equal((wi['balance'] + wi['immature_balance']), pny_bal)
    return (zpny_bal, pny_bal)
def check_balances(denom, zpny_bal, pny_bal):
    zpny_bal -= denom
    assert_equal(self.nodes[2].getzerocoinbalance()['Total'], zpny_bal)
    pny_bal += denom
    wi = self.nodes[2].getwalletinfo()
    assert_equal((wi['balance'] + wi['immature_balance']), pny_bal)
    return (zpny_bal, pny_bal)