diff martini/tests/test.py @ 0:3c3522ce6e3a

initial import of martINI from https://svn.openplans.org/svn/standalone/martINI/
author k0s <k0scist@gmail.com>
date Tue, 08 Dec 2009 15:13:28 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/martini/tests/test.py	Tue Dec 08 15:13:28 2009 -0500
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+
+import doctest
+import os
+
+def run_tests():
+    directory = os.path.dirname(os.path.abspath(__file__))
+    tests =  [ test for test in os.listdir(directory) if test.endswith('.txt') ]
+
+    for test in tests:
+        doctest.testfile(test)
+
+if __name__ == '__main__':
+    run_tests()