예제 #1
0
def test_uuid_to_string_base_64_and_back():
    random_uuid = uuid.uuid4()
    s3 = idm.uuid2slug(str(random_uuid))
    u3 = idm.slug2uuid(s3)
    random_uuid_copy = uuid.UUID(u3)
    assert random_uuid == random_uuid_copy
예제 #2
0
def test_uuid_string_to_base_64_string(uuid_str, slug):
    assert idm.uuid2slug(uuid_str) == slug