mirror of
https://github.com/romanz/amodem.git
synced 2026-04-20 13:16:42 +08:00
trezor: add ping for self-test
This commit is contained in:
@@ -25,6 +25,8 @@ class Client(object):
|
||||
log.debug('revision : %s', binascii.hexlify(f.revision))
|
||||
|
||||
def __enter__(self):
|
||||
msg = 'Hello World!'
|
||||
assert self.client.ping(msg) == msg
|
||||
return self
|
||||
|
||||
def __exit__(self, *args):
|
||||
|
||||
Reference in New Issue
Block a user