zcashd/qa/rpc-tests/wallet_shieldcoinbase_sapli...

23 lines
688 B
Python
Executable File

#!/usr/bin/env python3
from wallet_shieldcoinbase import WalletShieldCoinbaseTest
from test_framework.util import assert_equal
class WalletShieldCoinbaseSapling(WalletShieldCoinbaseTest):
def __init__(self):
super(WalletShieldCoinbaseSapling, self).__init__()
self.nu5_activation = 99999
def test_init_zaddr(self, node):
self.addr = node.z_getnewaddress('sapling')
return self.addr
def test_check_balance_zaddr(self, node, expected):
balance = node.z_getbalance(self.addr)
assert_equal(balance, expected)
if __name__ == '__main__':
print("Test shielding to a sapling address")
WalletShieldCoinbaseSapling().main()