/django/contrib/gis/geos/tests/__init__.py
Python | 25 lines | 18 code | 4 blank | 3 comment | 1 complexity | 61090751eb72e57f8076ab184a9e665f MD5 | raw file
Possible License(s): BSD-3-Clause
- """
- GEOS Testing module.
- """
- from django.utils.unittest import TestSuite, TextTestRunner
- import test_geos, test_io, test_geos_mutation, test_mutable_list
- test_suites = [
- test_geos.suite(),
- test_io.suite(),
- test_geos_mutation.suite(),
- test_mutable_list.suite(),
- ]
- def suite():
- "Builds a test suite for the GEOS tests."
- s = TestSuite()
- map(s.addTest, test_suites)
- return s
- def run(verbosity=1):
- "Runs the GEOS tests."
- TextTestRunner(verbosity=verbosity).run(suite())
- if __name__ == '__main__':
- run(2)