~ubuntu-branches/ubuntu/jaunty/python-django/jaunty

« back to all changes in this revision

Viewing changes to django/contrib/gis/tests/test_gdal.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant, Eddy Mulyono
  • Date: 2008-09-16 12:18:47 UTC
  • mfrom: (1.1.5 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080916121847-mg225rg5mnsdqzr0
Tags: 1.0-1ubuntu1
* Merge from Debian (LP: #264191), remaining changes:
  - Run test suite on build.

[Eddy Mulyono]
* Update patch to workaround network test case failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
from django.contrib.gis.tests import \
 
9
     test_gdal_driver, test_gdal_ds, test_gdal_envelope, \
 
10
     test_gdal_geom, test_gdal_srs
 
11
     
 
12
 
 
13
test_suites = [test_gdal_driver.suite(),
 
14
               test_gdal_ds.suite(),
 
15
               test_gdal_envelope.suite(),
 
16
               test_gdal_geom.suite(),
 
17
               test_gdal_srs.suite(),
 
18
               ]
 
19
 
 
20
def suite():
 
21
    "Builds a test suite for the GDAL tests."
 
22
    s = TestSuite()
 
23
    map(s.addTest, test_suites)
 
24
    return s
 
25
 
 
26
def run(verbosity=1):
 
27
    "Runs the GDAL tests."
 
28
    TextTestRunner(verbosity=verbosity).run(suite())