Standardize uuid generation for events/storage/registry (#39184)
This commit is contained in:
1 parent
28332f23b3
commit
bee6d87e7a
6 files changed
+34
-15
No files matched your search
@@ -0,0 +1,11 @@
|
||||
"""Test Home Assistant uuid util methods."""
|
||||
|
||||
import uuid
|
||||
|
||||
import homeassistant.util.uuid as uuid_util
|
||||
|
||||
|
||||
async def test_uuid_v1mc_hex():
|
||||
"""Verify we can generate a uuid_v1mc and return hex."""
|
||||
assert len(uuid_util.uuid_v1mc_hex()) == 32
|
||||
assert uuid.UUID(uuid_util.uuid_v1mc_hex())
|
||||
Reference in new issue
Block a user