web/lib/django/contrib/gis/gdal/tests/__init__.py
changeset 38 77b6da96e6f1
parent 0 0d40e90630ef
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/lib/django/contrib/gis/gdal/tests/__init__.py	Wed Jun 02 18:57:35 2010 +0200
@@ -0,0 +1,25 @@
+"""
+Module for executing all of the GDAL tests.  None
+of these tests require the use of the database.
+"""
+from unittest import TestSuite, TextTestRunner
+
+# Importing the GDAL test modules.
+import test_driver, test_ds, test_envelope, test_geom, test_srs
+
+test_suites = [test_driver.suite(),
+               test_ds.suite(),
+               test_envelope.suite(),
+               test_geom.suite(),
+               test_srs.suite(),
+               ]
+
+def suite():
+    "Builds a test suite for the GDAL tests."
+    s = TestSuite()
+    map(s.addTest, test_suites)
+    return s
+
+def run(verbosity=1):
+    "Runs the GDAL tests."
+    TextTestRunner(verbosity=verbosity).run(suite())