def findTestCases(module, prefix='test', sortUsing=cmp,
suiteClass=suite.TestSuite):
return _makeLoader(prefix, sortUsing, suiteClass).loadTestsFromModule(module)
#================================================================================# from unittest import findTestCases,TextTestRunner,TestSuite from glob import glob from os.path import dirname,join,split,splitext import sys
# pdb.set_trace()
modules = get_modules()
suite = TestSuite( [ findTestCases(mod) for mod in modules ] )
return suite
def set_device_type( dist, attr, value ):
src/c/l/clyther-0.1-beta-3/lib/clyther/tests/__init__.py clyther(Download)
#================================================================================# from unittest import findTestCases,TextTestRunner,TestSuite from glob import glob from os.path import dirname,join,split,splitext import sys
# pdb.set_trace()
modules = get_modules()
suite = TestSuite( [ findTestCases(mod) for mod in modules ] )
return suite
def set_device_type( dist, attr, value ):
src/p/y/pycogent-HEAD/trunk/cogent/util/unit_test.py pycogent(Download)
#from contextlib import contextmanager
import numpy; from numpy import testing, array, asarray, ravel, zeros, \
logical_and, logical_or, isfinite
from unittest import main, TestCase as orig_TestCase, TestSuite, findTestCases
from cogent.util.misc import recursive_flatten
from cogent.maths.stats.test import t_two_sample, G_ind
src/p/y/pycogent-HEAD/cogent/util/unit_test.py pycogent(Download)
#from contextlib import contextmanager
import numpy; from numpy import testing, array, asarray, ravel, zeros, \
logical_and, logical_or, isfinite
from unittest import main, TestCase as orig_TestCase, TestSuite, findTestCases
from cogent.util.misc import recursive_flatten
from cogent.maths.stats.test import t_two_sample, G_ind
src/c/o/cogent-1.4.1/cogent/util/unit_test.py cogent(Download)
#from contextlib import contextmanager
import numpy; from numpy import testing, array, asarray, ravel, zeros, \
logical_and, logical_or, isfinite
from unittest import main, TestCase as orig_TestCase, TestSuite, findTestCases
from cogent.util.misc import recursive_flatten
from cogent.maths.stats.test import t_two_sample, G_ind