Exemple #1
0
"""
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)
Exemple #2
0
    suite = unittest.TestSuite()
    suite.addTest(SetupTests('test_setup'))
    return suite

def setUpModule():

    pass


class SetupTests(unittest.TestCase):

    def test_setup(self):
        self.assertTrue(True)

if __name__ == '__main__':

  import test_io, test_processing, test_nllstuff, test_hdf5, test_migration 

  suite_list=[suite(),
    test_io.suite(),
    test_processing.suite(),
    test_nllstuff.suite(),
    test_hdf5.suite(),
    test_migration.suite(),
    ]

  alltests=unittest.TestSuite(suite_list)

  unittest.TextTestRunner(verbosity=2).run(alltests)