summaryrefslogtreecommitdiff
path: root/gbp/git_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git_utils.py')
-rw-r--r--gbp/git_utils.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/gbp/git_utils.py b/gbp/git_utils.py
index af55c20..c95dd31 100644
--- a/gbp/git_utils.py
+++ b/gbp/git_utils.py
@@ -1,6 +1,6 @@
# vim: set fileencoding=utf-8 :
#
-# (C) 2006,2007 Guido Guenther <agx@sigxcpu.org>
+# (C) 2006,2007,2008 Guido Guenther <agx@sigxcpu.org>
"""provides some git repository related helpers"""
import subprocess
@@ -152,4 +152,12 @@ def rfc822_date_to_git(rfc822_date):
tz = d.strftime("%z")
return '%d %s' % (seconds, tz)
+
+def _test():
+ import doctest
+ doctest.testmod()
+
+if __name__ == '__main__':
+ _test()
+
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: