summaryrefslogtreecommitdiffstats
path: root/contrib/python-uuid/test.py
blob: 2264f6233c01016a2ae7d99a438a359cd6766ae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python
import e2fsprogs_uuid
import time

print "Generating uuid...",
try:
    time = time.time()
    u = e2fsprogs_uuid.generate()
except:
    u = "FAIL"
print u, "...", time

print "Calling generate with param...",
try:
    e2fsprogs_uuid.generate("param")
    print "FAIL."
except:
    print "OK"