コード例 #1
0
ファイル: unit_tests.py プロジェクト: davidsoloman/pybitcoin
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
ファイル: unit_tests.py プロジェクト: monorisk/pybitcoin
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
ファイル: unit_tests.py プロジェクト: monorisk/pybitcoin
 def setUp(self):
     self.wallet = SDWallet(self.reference['passphrase'])
コード例 #5
0
 def setUp(self):
     self.wallet = SDWallet(self.reference['passphrase'])