Did I find the right examples for you? yes no

All Samples(805)  |  Call(711)  |  Derive(6)  |  Import(88)
A test suite is a composite test consisting of a number of TestCases.

For use, create an instance of TestSuite, then add test case instances.
When all tests have been added, the suite can be passed to a test
runner, such as TextTestRunner. It will run the individual test cases
in the order in which they were added, aggregating the results. When
subclassing, do not forget to call the base class constructor.

src/h/u/hunch-sample-app-HEAD/django/test/simple.py   hunch-sample-app(Download)
def build_suite(app_module):
    "Create a complete Django test suite for the provided application module"
    suite = unittest.TestSuite()
 
    # Load unit and doctests in the models.py module. If module has
 
    # Construct a suite out of the tests that matched.
    return unittest.TestSuite(tests)
 
def partition_suite(suite, classes, bins):
    """
    class_count = len(classes)
    bins = [unittest.TestSuite() for i in range(class_count+1)]
    partition_suite(suite, classes, bins)
    for i in range(class_count):
    def build_suite(self, test_labels, extra_tests=None, **kwargs):
        suite = unittest.TestSuite()
 
        if test_labels:
            for label in test_labels:

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/geos/tests/__init__.py   hunch-sample-app(Download)
"""
GEOS Testing module.
"""
from django.utils.unittest import TestSuite, TextTestRunner
import test_geos, test_io, test_geos_mutation, test_mutable_list
def suite():
    "Builds a test suite for the GEOS tests."
    s = TestSuite()
    map(s.addTest, test_suites)
    return s

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/gdal/tests/__init__.py   hunch-sample-app(Download)
"""
Module for executing all of the GDAL tests.  None
of these tests require the use of the database.
"""
from django.utils.unittest import TestSuite, TextTestRunner
def suite():
    "Builds a test suite for the GDAL tests."
    s = TestSuite()
    map(s.addTest, test_suites)
    return s

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/geos/tests/test_mutable_list.py   hunch-sample-app(Download)
def suite():
    s = unittest.TestSuite()
    s.addTest(unittest.makeSuite(ListMixinTest))
    s.addTest(unittest.makeSuite(ListMixinTestSingle))
    return s

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/tests/test_measure.py   hunch-sample-app(Download)
def suite():
    s = unittest.TestSuite()
    s.addTest(unittest.makeSuite(DistanceTest))
    s.addTest(unittest.makeSuite(AreaTest))
    return s

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/tests/layermap/tests.py   hunch-sample-app(Download)
def suite():
    s = unittest.TestSuite()
    s.addTest(unittest.makeSuite(LayerMapTest))
    return s
 

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/geos/tests/test_geos_mutation.py   hunch-sample-app(Download)
def suite():
    s = unittest.TestSuite()
    s.addTest(unittest.makeSuite(GEOSMutationTest))
    return s
 

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/gdal/tests/test_srs.py   hunch-sample-app(Download)
def suite():
    s = unittest.TestSuite()
    s.addTest(unittest.makeSuite(SpatialRefTest))
    return s
 

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/gdal/tests/test_geom.py   hunch-sample-app(Download)
def suite():
    s = unittest.TestSuite()
    s.addTest(unittest.makeSuite(OGRGeomTest))
    return s
 

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/gdal/tests/test_envelope.py   hunch-sample-app(Download)
def suite():
    s = unittest.TestSuite()
    s.addTest(unittest.makeSuite(EnvelopeTest))
    return s
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next