UUID is exactly 9 bytes long

This commit is contained in:
slush 2013-01-24 15:51:12 +01:00
parent 29de33fa98
commit 83aa0e6e66
1 changed files with 2 additions and 1 deletions

View File

@ -27,10 +27,11 @@ class TestBasic(common.BitkeyTest):
def test_uuid(self):
uuid1 = self.bitkey.get_uuid()
self.bitkey.init_device()
uuid2 = self.bitkey.get_uuid()
# 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
self.assertEqual(uuid1, uuid2)