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

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

src/p/y/python-trezor-HEAD/tests/test_protect_call.py   python-trezor(Download)
    def test_expected_responses(self):
        self.setup_mnemonic_pin_passphrase()
 
        # This is low-level test of set_expected_responses()
        # feature of debugging client
    def test_pin(self):
        self.setup_mnemonic_pin_passphrase()
 
        with self.client:
            self.assertEqual(self.client.debug.read_pin()[0], self.pin4)
    def test_incorrect_pin(self):
        self.setup_mnemonic_pin_passphrase()
        self.client.setup_debuglink(button=True, pin_correct=False)
        self.assertRaises(PinException, self._some_protected_call, False, True, False)
 
    def test_cancelled_pin(self):
        self.setup_mnemonic_pin_passphrase()
    def test_exponential_backoff_with_reboot(self):
        self.setup_mnemonic_pin_passphrase()
 
        self.client.setup_debuglink(button=True, pin_correct=False)
 

src/p/y/python-trezor-HEAD/tests/test_protection_levels.py   python-trezor(Download)
    def test_initialize(self):
        with self.client:
            self.setup_mnemonic_pin_passphrase()
            self.client.set_expected_responses([proto.Features()])
            self.client.init_device()
 
    def test_apply_settings(self):
        with self.client:
            self.setup_mnemonic_pin_passphrase()
    def test_change_pin(self):
        with self.client:
            self.setup_mnemonic_pin_passphrase()
            self.client.set_expected_responses([proto.ButtonRequest(),
                                      proto.PinMatrixRequest(),
    def test_ping(self):
        with self.client:
            self.setup_mnemonic_pin_passphrase()
            self.client.set_expected_responses([proto.ButtonRequest(),
                                      proto.PinMatrixRequest(),
    def test_get_entropy(self):
        with self.client:
            self.setup_mnemonic_pin_passphrase()
            self.client.set_expected_responses([proto.ButtonRequest(),
                                      proto.Entropy()])

src/p/y/python-trezor-HEAD/tests/test_msg_wipedevice.py   python-trezor(Download)
    def test_wipe_device(self):
        self.setup_mnemonic_pin_passphrase()
        features = self.client.call_raw(proto.Initialize())
 
        self.assertEqual(features.initialized, True)

src/p/y/python-trezor-HEAD/tests/test_msg_ping.py   python-trezor(Download)
    def test_ping(self):
        self.setup_mnemonic_pin_passphrase()
 
        with self.client:
            self.client.set_expected_responses([proto.Success()])
    def test_ping_caching(self):
        self.setup_mnemonic_pin_passphrase()
 
        with self.client:
            self.client.set_expected_responses([proto.ButtonRequest(code=proto_types.ButtonRequest_ProtectCall), proto.PinMatrixRequest(), proto.PassphraseRequest(), proto.Success()])

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

src/p/y/python-trezor-HEAD/tests/test_msg_changepin.py   python-trezor(Download)
    def test_change_pin(self):
        self.setup_mnemonic_pin_passphrase()
        features = self.client.call_raw(proto.Initialize())
        self.assertTrue(features.pin_protection)
 
    def test_remove_pin(self):
        self.setup_mnemonic_pin_passphrase()
        features = self.client.call_raw(proto.Initialize())
        self.assertTrue(features.pin_protection)
 
    def test_set_failed_2(self):
        self.setup_mnemonic_pin_passphrase()
        features = self.client.call_raw(proto.Initialize())
        self.assertTrue(features.pin_protection)
 

src/p/y/python-trezor-HEAD/tests/test_msg_applysettings.py   python-trezor(Download)
    def test_apply_settings(self):
        self.setup_mnemonic_pin_passphrase()
        self.assertEqual(self.client.features.label, 'test')
 
        with self.client:
    def test_invalid_language(self):
        self.setup_mnemonic_pin_passphrase()
        self.assertEqual(self.client.features.language, 'english')
 
        with self.client:

src/p/y/python-trezor-HEAD/tests/test_debuglink.py   python-trezor(Download)
    def test_pin(self):
        self.setup_mnemonic_pin_passphrase()
 
        # Manually trigger PinMatrixRequest
        resp = self.client.call_raw(proto.Ping(message='test', pin_protection=True))