PageRenderTime 13ms CodeModel.GetById 11ms RepoModel.GetById 0ms 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
Possible License(s): BSD-3-Clause
  1. """
  2. GEOS Testing module.
  3. """
  4. from django.utils.unittest import TestSuite, TextTestRunner
  5. import test_geos, test_io, test_geos_mutation, test_mutable_list
  6. test_suites = [
  7. test_geos.suite(),
  8. test_io.suite(),
  9. test_geos_mutation.suite(),
  10. test_mutable_list.suite(),
  11. ]
  12. def suite():
  13. "Builds a test suite for the GEOS tests."
  14. s = TestSuite()
  15. map(s.addTest, test_suites)
  16. return s
  17. def run(verbosity=1):
  18. "Runs the GEOS tests."
  19. TextTestRunner(verbosity=verbosity).run(suite())
  20. if __name__ == '__main__':
  21. run(2)