mirror of
https://github.com/home-assistant/core.git
synced 2025-05-17 12:29:16 +00:00
12 lines
294 B
Python
12 lines
294 B
Python
"""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())
|