1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00

update test_msg_getentropy.py

This commit is contained in:
Pavol Rusnak 2017-05-08 22:10:47 +02:00
parent 6f092f323b
commit 530954acdc
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -45,7 +45,7 @@ class TestMsgGetentropy(common.TrezorTest):
with self.client:
self.client.set_expected_responses([proto.ButtonRequest(code=proto_types.ButtonRequest_ProtectCall), proto.Entropy()])
ent = self.client.get_entropy(l)
self.assertTrue(len(ent) >= l)
self.assertTrue(len(ent) == l)
print('entropy = ', entropy(ent))
if __name__ == '__main__':