def makeSuite(testCaseClass, prefix='test', sortUsing=cmp,
suiteClass=suite.TestSuite):
return _makeLoader(prefix, sortUsing, suiteClass).loadTestsFromTestCase(testCaseClass)
def test_suite():
from unittest import TestSuite, makeSuite
suite = TestSuite()
suite.addTest(makeSuite(TestRememberBasedContent))
suite.addTest(makeSuite(TestInstall))
return suite
src/e/x/example.archetype-1.0/example/archetype/tests/test_setup.py example.archetype(Download)
def test_suite():
from unittest import TestSuite, makeSuite
suite = TestSuite()
suite.addTest(makeSuite(TestProductInstall))
suite.addTest(makeSuite(TestInstantiation))
return suite
src/c/o/collective.ploneseltest-1.0b2/collective/ploneseltest/tests/test_example.py collective.ploneseltest(Download)
def test_suite():
from unittest import TestSuite, makeSuite
suite = TestSuite()
suite.addTest(makeSuite(ExampleTestCase))
return suitesrc/c/2/c2.sample.csvworkflow-1.1/c2/sample/csvworkflow/tests/testSetup.py c2.sample.csvworkflow(Download)
from Products.CMFCore.permissions import ListFolderContents from Products.CMFCore.permissions import View from Products.CMFCore.utils import _checkPermission as checkPerm from unittest import TestSuite, makeSuite from WFtest import * from c2.sample.csvworkflow.tests.base import C2CsvworkflowTestCase
def test_suite():
suite = TestSuite()
suite.addTest(makeSuite(TestWorkflowAction))
return suite
src/s/q/sqmediumlite-1.7.1/_sqmediumlite/test/major.py sqmediumlite(Download)
import sys
import types, random, os, threading
from time import sleep, time
from unittest import \
TestCase, TestSuite, TextTestRunner, makeSuite
import sqmediumlite as sqlite
from _sqmediumlite.test import \
def suite ():
return TestSuite ((
makeSuite (Control , "init"),
makeSuite (AttributeCompat , "j"),
makeSuite (ConstantsCompat, "j"),
makeSuite (InterruptCompat, "j"),
makeSuite (SameThreadCompat, "j"),
makeSuite (TransactionCompat, "j"),
makeSuite (TimeoutCompat, "j"),
makeSuite (MethodsCompat, "j"),
makeSuite (RowfactoryCompat, "j"),
makeSuite (MiscCompat, "j"),
makeSuite (TimeoutFeatures, "j"),
makeSuite (AttachFeatures, "j"),
makeSuite (MiscCompat, "j"),
makeSuite (TimeoutFeatures, "j"),
makeSuite (AttachFeatures, "j"),
makeSuite (ServerMatchFeatures , "j"),
makeSuite (TransactionFeatures, "j"),
makeSuite (StatusFeatures, "j"),
makeSuite (OtherFeatures, "j"),
makeSuite (PysqliteInternals, "j"),
makeSuite (TransactionInternals, "j"),
makeSuite (RecyclingInternals, "j"),
makeSuite (BothendInternals , "j"),
makeSuite (DeallocInternals, "j"),
makeSuite (MiscInternals , "j"),
makeSuite (Control , "exit"),
src/p/y/pyfit-HEAD/fit/tests/FixtureTest.py pyfit(Download)
# been updated since the initial conversion. import types from unittest import makeSuite, TestCase, main from fit.InitEnvironment import FG, setupFitGlobalForTests from fit.FitNesseExceptions import FitFailureException from fit.Fixture import Fixture, RunTime, NullFixtureListener
def makeFixtureTest():
theSuite = makeSuite(TestFixtureInStandardsMode, 'test')
theSuite.addTests([makeSuite(TestRunTime, 'test'),
makeSuite(SpecifyWhichCamelToUse, "should"),
makeSuite(DrillDownToDoCell, "should"),
makeSuite(ErrorOnFirstTable, "should"),
makeSuite(TestSymbols, "should"),
makeSuite(TestFitNesseTest, "should"),
makeSuite(SpecifySetupAndTeardownExits, "should"),
src/p/y/pyfit-HEAD/fit/tests/RunnerImplementationTest.py pyfit(Download)
import os, os.path import sys import types from unittest import makeSuite, TestCase, main from fit.Counts import Counts from fit.InitEnvironment import FG, clearFitGlobalForTests
def makeRunnerImplementationTest():
theSuite = makeSuite(TestRunnerImplementationInstantiation, 'test')
theSuite.addTests([makeSuite(TestRunner, 'test'),
makeSuite(TestStatsHandler, 'should'),
makeSuite(TestConsoleTotals, 'should'),
makeSuite(TestAllFilesInDirectory, 'test'),
makeSuite(ExamplesForListOfFiles, 'exampleOf'),
makeSuite(TestHTMLRunner, 'should'),
makeSuite(TestDirectoryRunner, 'should'),
src/p/y/pyfit-HEAD/fit/tests/ColumnFixtureTest.py pyfit(Download)
#endLegalNotices import types from unittest import makeSuite, TestCase, main from fit.ColumnFixture import ColumnFixture from fit import FitGlobal
def makeColumnFixtureTest():
suite = makeSuite(OldBindExamples, 'should')
suite.addTest(makeSuite(ExtendedLabelExitExamples, "should"))
suite.addTest(makeSuite(ExtendedLabelNoExitExamples, "should"))
suite.addTest(makeSuite(NoMarkupExamples, "should"))
suite.addTest(makeSuite(TestResetAndExecute, "should"))
suite.addTest(makeSuite(TestExceptionInReset, "should"))
suite.addTest(makeSuite(TestExceptionInExecute, "should"))
src/p/y/pyfit-HEAD/fit/tests/RowFixtureTest.py pyfit(Download)
# Last updated for Release 0.8a1 #endLegalStuff from unittest import makeSuite, TestCase, main from fit.Counts import Counts from fit.FitException import FitException from fit import FitGlobal
def makeRowFixtureTest():
theSuite = makeSuite(Test_RowFixture, 'test')
theSuite.addTests([makeSuite(TestRowFixtureBind, 'test'),
makeSuite(SpecifyMarkupOff, "should"),
makeSuite(SpecifyExtendedLabelProcess, "should"),
makeSuite(SpecifyCollectionFromSymbol, "should"),
makeSuite(TestRowFixtureProcess, 'should'),
src/k/m/kmkey-HEAD/bundles/kmkey-08.03.01/ManagableIndex/tests/TestBase.py kmkey(Download)
####################################################################### # Standard imports from unittest import TestCase, TestSuite, makeSuite, TextTestRunner from Acquisition import Explicit, Implicit from OFS.Application import Application
def genSuite(*testClasses,**kw):
prefix= kw.get('prefix','test')
return TestSuite([makeSuite(cl,prefix) for cl in testClasses])
def runSuite(suite):
tester= TextTestRunner()
tester.run(suite)
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next