2020-08-24 15:21:30 +00:00
|
|
|
"""Test Home Assistant uuid util methods."""
|
|
|
|
|
|
|
|
import uuid
|
|
|
|
|
|
|
|
import homeassistant.util.uuid as uuid_util
|
|
|
|
|
|
|
|
|
2020-10-07 14:37:01 +00:00
|
|
|
async def test_uuid_util_random_uuid_hex():
|
|
|
|
"""Verify we can generate a random uuid."""
|
|
|
|
assert len(uuid_util.random_uuid_hex()) == 32
|
|
|
|
assert uuid.UUID(uuid_util.random_uuid_hex())
|