summaryrefslogtreecommitdiffstats
path: root/contrib/python-uuid/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python-uuid/test.py')
-rwxr-xr-xcontrib/python-uuid/test.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/python-uuid/test.py b/contrib/python-uuid/test.py
new file mode 100755
index 0000000..2264f62
--- /dev/null
+++ b/contrib/python-uuid/test.py
@@ -0,0 +1,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"