chiark / gitweb /
Load . into chkpath-python/trunk.
[checkpath-python] / test.py
diff --git a/test.py b/test.py
new file mode 100644 (file)
index 0000000..9eb2d8d
--- /dev/null
+++ b/test.py
@@ -0,0 +1,12 @@
+import checkpath as CP
+
+class VerboseCheck (CP.CheckPath):
+  def __init__(me):
+    CP.CheckPath.__init__(me)
+    me.what |= CP.REPORT
+  def report(me, what, verb, path, msg):
+    print msg
+
+cp = VerboseCheck()
+cp.check('/home/mdw')
+