Commit f3fb2d82 authored by Marius Wachtler's avatar Marius Wachtler

Add a test for the uuid library

parent 43fb4843
import uuid
print len(str(uuid.uuid1()))
print len(str(uuid.uuid4()))
print uuid.uuid3(uuid.NAMESPACE_DNS, 'python.org')
print uuid.uuid5(uuid.NAMESPACE_DNS, 'python.org')
x = uuid.UUID('{00010203-0405-0607-0809-0a0b0c0d0e0f}')
print str(x)
print uuid.UUID(bytes=x.bytes)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment