tests/__init__.py
author Tero Marttila <terom@fixme.fi>
Mon, 16 Feb 2009 18:35:57 +0200
changeset 75 f94c06cfcc0e
child 77 bef7196f7682
permissions -rw-r--r--
separate tests/ package, although the import paths are still wonky
75
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     1
"""
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     2
    Our collection of unittest's for the various modules
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     3
"""
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     4
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     5
import unittest
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     6
import test_http
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     7
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     8
def all_tests () :
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     9
    """
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    10
        Return a TestSuite with all test cases loaded
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    11
    """
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    12
    
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    13
    return unittest.TestSuite(unittest.defaultTestLoader.loadTestsFromModule(module) for module in (
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    14
        test_http,
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    15
    ))
f94c06cfcc0e separate tests/ package, although the import paths are still wonky
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    16