PageRenderTime 52ms CodeModel.GetById 30ms app.highlight 2ms RepoModel.GetById 18ms app.codeStats 0ms

/django/contrib/gis/gdal/tests/__init__.py

https://code.google.com/p/mango-py/
Python | 25 lines | 16 code | 4 blank | 5 comment | 0 complexity | c0060a111494132952dafc05426a7dfb MD5 | raw file
 1"""
 2Module for executing all of the GDAL tests.  None
 3of these tests require the use of the database.
 4"""
 5from django.utils.unittest import TestSuite, TextTestRunner
 6
 7# Importing the GDAL test modules.
 8import test_driver, test_ds, test_envelope, test_geom, test_srs
 9
10test_suites = [test_driver.suite(),
11               test_ds.suite(),
12               test_envelope.suite(),
13               test_geom.suite(),
14               test_srs.suite(),
15               ]
16
17def suite():
18    "Builds a test suite for the GDAL tests."
19    s = TestSuite()
20    map(s.addTest, test_suites)
21    return s
22
23def run(verbosity=1):
24    "Runs the GDAL tests."
25    TextTestRunner(verbosity=verbosity).run(suite())