class SequentialWalletTest(unittest.TestCase): reference = { "passphrase": ("shepherd mais pack rate enamel horace diva filesize" " maximum really roar mall"), "bitcoin_keypair_1": {"address": "1DS2vmsqTwtXp1DfmDHi55Aqc6w4LBUC9k"}, } def setUp(self): self.wallet = SDWallet(self.reference["passphrase"]) def tearDown(self): pass def test_bitcoin_keypairs(self): bitcoin_keypair_1 = self.wallet.keypair(1, BitcoinKeypair) self.assertEqual(self.reference["bitcoin_keypair_1"]["address"], bitcoin_keypair_1.address()) self.assertEqual(bitcoin_keypair_1.passphrase(), self.reference["passphrase"] + " bitcoin1")
class SequentialWalletTest(unittest.TestCase): reference = { 'passphrase': ('shepherd mais pack rate enamel horace diva filesize' ' maximum really roar mall'), 'bitcoin_keypair_1': { 'address': '1DS2vmsqTwtXp1DfmDHi55Aqc6w4LBUC9k', } } def setUp(self): self.wallet = SDWallet(self.reference['passphrase']) def tearDown(self): pass def test_bitcoin_keypairs(self): bitcoin_keypair_1 = self.wallet.keypair(1, BitcoinKeypair) self.assertEqual(self.reference['bitcoin_keypair_1']['address'], bitcoin_keypair_1.address()) self.assertEqual(bitcoin_keypair_1.passphrase(), self.reference['passphrase'] + ' bitcoin1')
def setUp(self): self.wallet = SDWallet(self.reference['passphrase'])