4
_test_suite = unittest.TestSuite()
5
for module in os.listdir(os.path.dirname(__file__)):
6
if module == '__init__.py' or module[-3:] != '.py':
8
mod = __import__(module[:-3], locals(), globals())
9
_test_suite.addTests(unittest.TestLoader().loadTestsFromModule(mod))
1
# Copyright 2012 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
from os.path import dirname
6
from django.utils.unittest import defaultTestLoader
10
return defaultTestLoader.discover(dirname(__file__))