2022-04-14 11:02:52 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2016-07-16 20:33:32 +00:00
|
|
|
from kombu.utils.uuid import uuid
|
|
|
|
|
|
|
|
|
2016-08-22 18:17:59 +00:00
|
|
|
class test_UUID:
|
2016-07-16 20:33:32 +00:00
|
|
|
|
2022-04-12 14:39:42 +00:00
|
|
|
def test_uuid4(self) -> None:
|
2016-08-22 18:17:59 +00:00
|
|
|
assert uuid() != uuid()
|
2016-07-16 20:33:32 +00:00
|
|
|
|
2022-04-12 14:39:42 +00:00
|
|
|
def test_uuid(self) -> None:
|
2016-07-16 20:33:32 +00:00
|
|
|
i1 = uuid()
|
|
|
|
i2 = uuid()
|
2016-08-22 18:17:59 +00:00
|
|
|
assert isinstance(i1, str)
|
|
|
|
assert i1 != i2
|