示例#1
0
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")
示例#2
0
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')
示例#3
0
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')
示例#4
0
 def setUp(self):
     self.wallet = SDWallet(self.reference['passphrase'])
示例#5
0
 def setUp(self):
     self.wallet = SDWallet(self.reference['passphrase'])