All Samples(1919) | Call(1757) | Derive(92) | Import(70)
This class is responsible for loading tests according to various criteria and returning them wrapped in a TestSuite
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()
test_loader.testMethodPrefix = 't_'
tests = [AdaptorAlignTrimTest]
src/p/o/pong-HEAD/pong.py pong(Download)
def test():
loader = unittest.TestLoader()
detectorTests = loader.loadTestsFromTestCase(
detector.DetectorTests)
guiTests = loader.loadTestsFromTestCase(
guitests.GuiTests)
movingTests = loader.loadTestsFromTestCase(
src/p/y/python-htmlstrip-HEAD/setup.py python-htmlstrip(Download)
#!/usr/bin/env python
from distutils.core import setup, Extension, Command
from unittest import TextTestRunner, TestLoader
class TestCommand(Command):
user_options = []
def run(self):
import tests
loader = TestLoader()
t = TextTestRunner()
t.run(loader.loadTestsFromModule(tests))
src/p/y/python-specfor-HEAD/specfor/check.py python-specfor(Download)
def __init__(self, runner=None, loader=None):
self.runner = runner or unittest.TextTestRunner()
self.loader = loader or unittest.TestLoader()
pass
def run(self, files):
sysmods = sys.modules.copy()
src/p/y/pysys-HEAD/trunk/pysys/unit/pyunit.py pysys(Download)
def createTestSuite(testFile): suite = unittest.TestSuite() loader = unittest.TestLoader() testClasses, globals = getTestClasses(testFile) for testClass in testClasses: methods = loader.getTestCaseNames(testClass) for method in methods:
src/p/y/python_koans-HEAD/python 3/runner/path_to_enlightenment.py python_koans(Download)
def koans():
loader = unittest.TestLoader()
suite = unittest.TestSuite()
loader.sortTestMethodsUsing = None
suite.addTests(loader.loadTestsFromTestCase(AboutAsserts))
suite.addTests(loader.loadTestsFromTestCase(AboutNone))
suite.addTests(loader.loadTestsFromTestCase(AboutLists))
src/p/y/python_koans-HEAD/python 2/runner/path_to_enlightenment.py python_koans(Download)
def koans():
loader = unittest.TestLoader()
suite = unittest.TestSuite()
loader.sortTestMethodsUsing = None
suite.addTests(loader.loadTestsFromTestCase(AboutAsserts))
suite.addTests(loader.loadTestsFromTestCase(AboutNone))
suite.addTests(loader.loadTestsFromTestCase(AboutLists))
src/w/x/wxmap2-HEAD/trunk/app/src/python/BeautifulSoup-3.0.8.1/setup.py wxmap2(Download)
#Make sure all the tests complete. import BeautifulSoupTests loader = unittest.TestLoader() result = unittest.TestResult() suite = loader.loadTestsFromModule(BeautifulSoupTests) suite.run(result)
src/r/p/rpc4django-0.1.7/setup.py rpc4django(Download)
import sys import os from distutils.command.install_data import install_data from distutils.command.install import INSTALL_SCHEMES from distutils.core import Command from unittest import TextTestRunner, TestLoader
cmdclasses = dict() loader = TestLoader() tests = loader.loadTestsFromModule(rpc4django.tests) class TestCommand(Command):
src/p/y/pysys-HEAD/pysys/unit/pyunit.py pysys(Download)
def createTestSuite(testFile): suite = unittest.TestSuite() loader = unittest.TestLoader() testClasses, globals = getTestClasses(testFile) for testClass in testClasses: methods = loader.getTestCaseNames(testClass) for method in methods:
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next