Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(44)  |  Call(44)  |  Derive(0)  |  Import(0)

src/p/y/python-trezor-HEAD/tests/test_zerosig.py   python-trezor(Download)
    def test_one_zero_signature(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        inp1 = proto_types.TxInputType(address_n=[0],  # 14LmW5k4ssUrtbAB4255zdqv3b4w1TuX9e
                             # amount=390000,
    def test_two_zero_signature(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        inp1 = proto_types.TxInputType(address_n=[0],  # 14LmW5k4ssUrtbAB4255zdqv3b4w1TuX9e
                             # amount=390000,

src/p/y/python-trezor-HEAD/tests/test_protect_call.py   python-trezor(Download)
    def test_no_protection(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        with self.client:
            self.assertEqual(self.client.debug.read_pin()[0], '')

src/p/y/python-trezor-HEAD/tests/test_msg_simplesigntx.py   python-trezor(Download)
    def test_one_one_fee(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        # tx: d5f65ee80147b4bcc70b75e4bbf2d7382021b871bd8867ef8fa525ef50864882
        # input 0: 0.0039 BTC
    def test_testnet_one_two_fee(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        # tx: 6f90f3c7cbec2258b0971056ef3fe34128dbde30daa9c0639a898f9977299d54
        # input 1: 10.00000000 BTC
    def test_testnet_fee_too_high(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        # tx: 6f90f3c7cbec2258b0971056ef3fe34128dbde30daa9c0639a898f9977299d54
        # input 1: 10.00000000 BTC
    def test_one_two_fee(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        # tx: d5f65ee80147b4bcc70b75e4bbf2d7382021b871bd8867ef8fa525ef50864882
        # input 0: 0.0039 BTC
    def test_one_three_fee(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        # tx: d5f65ee80147b4bcc70b75e4bbf2d7382021b871bd8867ef8fa525ef50864882
        # input 0: 0.0039 BTC

src/p/y/python-trezor-HEAD/tests/test_msg_signtx.py   python-trezor(Download)
    def test_one_one_fee(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        # tx: d5f65ee80147b4bcc70b75e4bbf2d7382021b871bd8867ef8fa525ef50864882
        # input 0: 0.0039 BTC
    def test_testnet_one_two_fee(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        # tx: 6f90f3c7cbec2258b0971056ef3fe34128dbde30daa9c0639a898f9977299d54
        # input 1: 10.00000000 BTC
    def test_testnet_fee_too_high(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        # tx: 6f90f3c7cbec2258b0971056ef3fe34128dbde30daa9c0639a898f9977299d54
        # input 1: 10.00000000 BTC
    def test_one_two_fee(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        # tx: d5f65ee80147b4bcc70b75e4bbf2d7382021b871bd8867ef8fa525ef50864882
        # input 0: 0.0039 BTC
    def test_one_three_fee(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        # tx: d5f65ee80147b4bcc70b75e4bbf2d7382021b871bd8867ef8fa525ef50864882
        # input 0: 0.0039 BTC

src/p/y/python-trezor-HEAD/tests/test_msg_signmessage.py   python-trezor(Download)
    def test_sign(self):
        self.setup_mnemonic_nopin_nopassphrase()
        sig = self.client.sign_message('Bitcoin', [0], "This is an example of a signed message.")
        self.assertEqual(sig.address, '14LmW5k4ssUrtbAB4255zdqv3b4w1TuX9e')
        self.assertEqual(binascii.hexlify(sig.signature), '209e23edf0e4e47ff1dec27f32cd78c50e74ef018ee8a6adf35ae17c7a9b0dd96f48b493fd7dbab03efb6f439c6383c9523b3bbc5f1a7d158a6af90ab154e9be80')
 
    def test_sign_testnet(self):
        self.setup_mnemonic_nopin_nopassphrase()
    def test_sign_utf(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        words_nfkd = u'Pr\u030ci\u0301s\u030cerne\u030c z\u030clut\u030couc\u030cky\u0301 ku\u030an\u030c u\u0301pe\u030cl d\u030ca\u0301belske\u0301 o\u0301dy za\u0301ker\u030cny\u0301 uc\u030cen\u030c be\u030cz\u030ci\u0301 pode\u0301l zo\u0301ny u\u0301lu\u030a'
        words_nfc = u'P\u0159\xed\u0161ern\u011b \u017elu\u0165ou\u010dk\xfd k\u016f\u0148 \xfap\u011bl \u010f\xe1belsk\xe9 \xf3dy z\xe1ke\u0159n\xfd u\u010de\u0148 b\u011b\u017e\xed pod\xe9l z\xf3ny \xfal\u016f'
    def test_too_long(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        # Message cannot be longer than 255 bytes
        self.assertRaises(CallException, self.client.sign_message, 'Bitcoin', [0], '1' * 256)

src/p/y/python-trezor-HEAD/tests/test_msg_resetdevice.py   python-trezor(Download)
    def test_already_initialized(self):
        self.setup_mnemonic_nopin_nopassphrase()
        self.assertRaises(Exception, self.client.reset_device, False, 128, True, True, 'label', 'english')
 
if __name__ == '__main__':

src/p/y/python-trezor-HEAD/tests/test_msg_recoverydevice.py   python-trezor(Download)
    def test_already_initialized(self):
        self.setup_mnemonic_nopin_nopassphrase()
        self.assertRaises(Exception, self.client.recovery_device, 12, False, False, 'label', 'english')
 
if __name__ == '__main__':

src/p/y/python-trezor-HEAD/tests/test_msg_loaddevice.py   python-trezor(Download)
    def test_load_device_1(self):
        self.setup_mnemonic_nopin_nopassphrase()
 
        mnemonic = self.client.debug.read_mnemonic()
        self.assertEqual(mnemonic, self.mnemonic12)

src/p/y/python-trezor-HEAD/tests/test_msg_getpublickey.py   python-trezor(Download)
    def test_btc(self):
        self.setup_mnemonic_nopin_nopassphrase()
        self.assertEqual(bip32.serialize(self.client.get_public_node([]), 0x0488B21E), 'xpub661MyMwAqRbcF1zGijBb2K6x9YiJPh58xpcCeLvTxMX6spkY3PcpJ4ABcCyWfskq5DDxM3e6Ez5ePCqG5bnPUXR4wL8TZWyoDaUdiWW7bKy')
        self.assertEqual(bip32.serialize(self.client.get_public_node([1]), 0x0488B21E), 'xpub68zNxjsTrV8y9AadThLW7dTAqEpZ7xBLFSyJ3X9pjTv6Njg6kxgjXJkzxq8u3ttnjBw1jupQHMP3gpGZzZqd1eh5S4GjkaMhPR18vMyUi8N')
        self.assertEqual(bip32.serialize(self.client.get_public_node([0, -1]), 0x0488B21E), 'xpub6A3FoZqYXj1AbW4thRwBh26YwZWbmoyjTaZwwxJjY1oKUpefLepL3RFS9DHKQrjAfxDrzDepYMDZPqXN6upQm3bHQ9xaXD5a3mqni3goF4v')
        self.assertEqual(bip32.serialize(self.client.get_public_node([-9, 0]), 0x0488B21E), 'xpub6A2h5mzLDfYginoD7q7wCWbq18wTbN9gducRr2w5NRTwdLeoT3cJSwefFqW7uXTpVFGtpUyDMBNYs3DNvvXx6NPjF9YEbUQrtxFSWnPtVrv')
        self.assertEqual(bip32.serialize(self.client.get_public_node([0, 9999999]), 0x0488B21E), 'xpub6A3FoZqQEK6iwLZ4HFkqSo5fb35BH4bpjC4SPZ63prfLdGYPwYxEuC6o91bUvFFdMzKWe5rs3axHRUjxJaSvBnKKFtnfLwDACRxPxabsv2r')
 
    def test_ltc(self):
        self.setup_mnemonic_nopin_nopassphrase()
    def test_tbtc(self):
        self.setup_mnemonic_nopin_nopassphrase()
        self.assertEqual(bip32.serialize(self.client.get_public_node([111, 42]), 0x043587CF), 'tpubDAgixSyai5PWbc8N1mBkHDR5nLgAnHFtY7r4y5EzxqAxrt9YUDpZL3kaRoHVvCfrcwNo31c2isBP2uTHcZxEosuKbyJhCAbrvGoPuLUZ7Mz')
 
if __name__ == '__main__':

src/p/y/python-trezor-HEAD/tests/test_msg_getaddress.py   python-trezor(Download)
    def test_btc(self):
        self.setup_mnemonic_nopin_nopassphrase()
        self.assertEqual(self.client.get_address('Bitcoin', []), '1EfKbQupktEMXf4gujJ9kCFo83k1iMqwqK')
        self.assertEqual(self.client.get_address('Bitcoin', [1]), '1CK7SJdcb8z9HuvVft3D91HLpLC6KSsGb')
        self.assertEqual(self.client.get_address('Bitcoin', [0, -1]), '1JVq66pzRBvqaBRFeU9SPVvg3er4ZDgoMs')
        self.assertEqual(self.client.get_address('Bitcoin', [-9, 0]), '1F4YdQdL9ZQwvcNTuy5mjyQxXkyCfMcP2P')
        self.assertEqual(self.client.get_address('Bitcoin', [0, 9999999]), '1GS8X3yc7ntzwGw9vXwj9wqmBWZkTFewBV')
 
    def test_ltc(self):
        self.setup_mnemonic_nopin_nopassphrase()
    def test_tbtc(self):
        self.setup_mnemonic_nopin_nopassphrase()
        self.assertEqual(self.client.get_address('Testnet', [111, 42]), 'moN6aN6NP1KWgnPSqzrrRPvx2x1UtZJssa')
 
    def test_public_ckd(self):
        self.setup_mnemonic_nopin_nopassphrase()

  1 | 2  Next