web/lib/django/contrib/gis/gdal/tests/__init__.py
changeset 0 0d40e90630ef
equal deleted inserted replaced
-1:000000000000 0:0d40e90630ef
       
     1 """
       
     2 Module for executing all of the GDAL tests.  None
       
     3 of these tests require the use of the database.
       
     4 """
       
     5 from unittest import TestSuite, TextTestRunner
       
     6 
       
     7 # Importing the GDAL test modules.
       
     8 import test_driver, test_ds, test_envelope, test_geom, test_srs
       
     9 
       
    10 test_suites = [test_driver.suite(),
       
    11                test_ds.suite(),
       
    12                test_envelope.suite(),
       
    13                test_geom.suite(),
       
    14                test_srs.suite(),
       
    15                ]
       
    16 
       
    17 def suite():
       
    18     "Builds a test suite for the GDAL tests."
       
    19     s = TestSuite()
       
    20     map(s.addTest, test_suites)
       
    21     return s
       
    22 
       
    23 def run(verbosity=1):
       
    24     "Runs the GDAL tests."
       
    25     TextTestRunner(verbosity=verbosity).run(suite())