Commits

Anonymous committed 233fbc6

Tart up testing.

  • Participants
  • Parent commits fc6a6e3

Comments (0)

Files changed (1)

File contrib/ditz.py

 """
-Python interface to Ditz issue directory.
+Python interface to Ditz issue tracker (http://ditz.rubyforge.org).
 """
 
 import os
     def filename(self):
         return self.template % self.id
 
-if __name__ == "__main__":
-    ditz = Ditz()
+def _test(basedir = None):
+    ditz = Ditz(basedir)
 
-    print "%s <%s>" % (ditz.config.name, ditz.config.email)
+    print "User: %s <%s>" % (ditz.config.name, ditz.config.email)
 
     print
-    print ditz.project.name
+    print "Project:", ditz.project.name
 
     print
     print "Releases:"
     print
     print "Issues:"
     for issue in ditz:
-        print "   %s [%s]" % (issue.title, issue.type)
+        print "   %s [%s]" % (issue.title, issue.type[1:])
+    
+if __name__ == "__main__":
+    _test()