mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-30 10:08:18 +00:00
update test_msg_getentropy.py
This commit is contained in:
parent
6f092f323b
commit
530954acdc
@ -45,7 +45,7 @@ class TestMsgGetentropy(common.TrezorTest):
|
|||||||
with self.client:
|
with self.client:
|
||||||
self.client.set_expected_responses([proto.ButtonRequest(code=proto_types.ButtonRequest_ProtectCall), proto.Entropy()])
|
self.client.set_expected_responses([proto.ButtonRequest(code=proto_types.ButtonRequest_ProtectCall), proto.Entropy()])
|
||||||
ent = self.client.get_entropy(l)
|
ent = self.client.get_entropy(l)
|
||||||
self.assertTrue(len(ent) >= l)
|
self.assertTrue(len(ent) == l)
|
||||||
print('entropy = ', entropy(ent))
|
print('entropy = ', entropy(ent))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user