mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-09 06:02:40 +00:00
UUID is exactly 9 bytes long
This commit is contained in:
parent
29de33fa98
commit
83aa0e6e66
@ -27,10 +27,11 @@ class TestBasic(common.BitkeyTest):
|
|||||||
|
|
||||||
def test_uuid(self):
|
def test_uuid(self):
|
||||||
uuid1 = self.bitkey.get_uuid()
|
uuid1 = self.bitkey.get_uuid()
|
||||||
|
self.bitkey.init_device()
|
||||||
uuid2 = self.bitkey.get_uuid()
|
uuid2 = self.bitkey.get_uuid()
|
||||||
|
|
||||||
# UUID must be longer than 10 characters
|
# UUID must be longer than 10 characters
|
||||||
self.assertGreater(len(uuid1), 10)
|
self.assertEqual(len(uuid1), 9)
|
||||||
|
|
||||||
# Every resulf of UUID must be the same
|
# Every resulf of UUID must be the same
|
||||||
self.assertEqual(uuid1, uuid2)
|
self.assertEqual(uuid1, uuid2)
|
||||||
|
Loading…
Reference in New Issue
Block a user