Did I find the right examples for you? yes no

All Samples(2983)  |  Call(2355)  |  Derive(283)  |  Import(345)
This class is responsible for loading tests according to various criteria
and returning them wrapped in a TestSuite

src/b/r/brevity-HEAD/brevity/test_old/sample_docs/sample_docs_test.py   brevity(Download)
    def parametrize(testcase_class, param=None):
        """Create a suite containing all tests taken from the given subclass, passing them the parameter 'param'.
 
        """
        testloader = unittest.TestLoader()

src/d/j/django-admin-report-HEAD/example/lib/reportlab/lib/testutils.py   django-admin-report(Download)
def makeSuiteForClasses(*classes):
    "Return a test suite with tests loaded from provided classes."
 
    suite = unittest.TestSuite()
    loader = unittest.TestLoader()

src/s/o/SomePackage-HEAD/examples/setuptools-test_suite/a_package/__init__.py   SomePackage(Download)
def load_suite():
    loader = unittest.TestLoader()
    suite = loader.loadTestsFromTestCase(TheTestCase)
    return suite
 

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/st_common.py   modern-python-example(Download)
class _list_testloader(unittest.TestLoader):
    suiteClass = list
 
def list_test_cases(class_):
    """Return a list of TestCase instances given a TestCase class

src/h/u/hunch-sample-app-HEAD/django/utils/unittest/loader.py   hunch-sample-app(Download)
class TestLoader(unittest.TestLoader):
    """
    This class is responsible for loading tests according to various criteria
    and returning them wrapped in a TestSuite
    """

src/s/t/stacks-0.1.0/stacks/__init__.py   stacks(Download)
import sys
import types
from unittest import TestCase as BaseTestCase, TestSuite, TestLoader as BaseTestLoader, TextTestRunner, TestProgram as BaseTestProgram
 
class TestCase(BaseTestCase):
class TestLoader(BaseTestLoader):
    suiteClass = TestSuite
 
    def __init__(self, shared):
        self.shared = shared

src/o/h/oh-mainline-HEAD/vendor/packages/BeautifulSoup/setup.py   oh-mainline(Download)
#Make sure all the tests complete.
import BeautifulSoupTests
loader = unittest.TestLoader()
result = unittest.TestResult()
suite = loader.loadTestsFromModule(BeautifulSoupTests)

src/q/i/qiime-HEAD/scripts/print_qiime_config.py   qiime(Download)
from os.path import isdir, exists, split, join
from sys import platform, version as python_version, executable, stdout
from unittest import TestLoader, TextTestRunner, TestCase
from shutil import rmtree
from subprocess import Popen, PIPE, STDOUT

src/b/c/bcbb-HEAD/align/adaptor_trim.py   bcbb(Download)
def testing_suite():
    """Generate the suite of tests.
    """
    test_suite = unittest.TestSuite()
    test_loader = unittest.TestLoader()

src/k/u/kuma-lib-HEAD/packages/beautifulsoup/setup.py   kuma-lib(Download)
#Make sure all the tests complete.
import BeautifulSoupTests
loader = unittest.TestLoader()
result = unittest.TestResult()
suite = loader.loadTestsFromModule(BeautifulSoupTests)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next