aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/zope.interface-3.6.4-py2.7-linux-x86_64.egg/zope/interface/tests/__init__.py
blob: 1cf24e65d583307989b95d9c98206b0bd5d8f8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
import unittest

def additional_tests():
    suites = unittest.TestSuite()
    for file in os.listdir(os.path.dirname(__file__)):
        if file.endswith('.py') and file!='__init__.py':
            name = os.path.splitext(file)[0]
            module = __import__('.'.join((__name__, name)), globals(), 
                                locals(), [name])
            if hasattr(module, 'test_suite'):
                suites.addTests(module.test_suite())
    return suites