You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-trezor/tests/common.py

27 lines
888 B
Python

import unittest
import config
from bitkeylib.client import BitkeyClient
from bitkeylib.debuglink import DebugLink
from bitkeylib import proto
class BitkeyTest(unittest.TestCase):
def setUp(self):
self.debug_transport = config.DEBUG_TRANSPORT(*config.DEBUG_TRANSPORT_ARGS)
self.transport = config.TRANSPORT(*config.TRANSPORT_ARGS)
self.bitkey = BitkeyClient(self.transport, DebugLink(self.debug_transport), debug=True)
self.bitkey.setup_debuglink(button=True, pin_correct=True)
self.bitkey.load_device(
seed='soda country ghost glove unusual dose blouse cope bless medal block car',
pin='1234')
print "Setup finished"
print "--------------"
def tearDown(self):
self.bitkey.init_device()
self.debug_transport.close()
self.transport.close()