PageRenderTime 162ms CodeModel.GetById 76ms app.highlight 2ms RepoModel.GetById 79ms app.codeStats 0ms

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

https://code.google.com/p/mango-py/
Python | 25 lines | 18 code | 4 blank | 3 comment | 1 complexity | 61090751eb72e57f8076ab184a9e665f MD5 | raw file
 1"""
 2GEOS Testing module.
 3"""
 4from django.utils.unittest import TestSuite, TextTestRunner
 5import test_geos, test_io, test_geos_mutation, test_mutable_list
 6
 7test_suites = [
 8    test_geos.suite(),
 9    test_io.suite(),
10    test_geos_mutation.suite(),
11    test_mutable_list.suite(),
12    ]
13
14def suite():
15    "Builds a test suite for the GEOS tests."
16    s = TestSuite()
17    map(s.addTest, test_suites)
18    return s
19
20def run(verbosity=1):
21    "Runs the GEOS tests."
22    TextTestRunner(verbosity=verbosity).run(suite())
23
24if __name__ == '__main__':
25    run(2)