trezor: add ping for self-test

This commit is contained in:
Roman Zeyde
2015-08-18 21:30:58 +03:00
parent 783722edce
commit 5d510c4a60
2 changed files with 6 additions and 0 deletions

View File

@@ -42,6 +42,10 @@ class ConnectionMock(object):
result.node.public_key = PUBKEY
return result
def ping(self, msg):
assert not self.closed
return msg
class FactoryMock(object):

View File

@@ -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):