Did I find the right examples for you? yes no

All Samples(23367)  |  Call(21629)  |  Derive(0)  |  Import(1738)

        def makeSuite(testCaseClass, prefix='test', sortUsing=cmp,
              suiteClass=suite.TestSuite):
    return _makeLoader(prefix, sortUsing, suiteClass).loadTestsFromTestCase(testCaseClass)
        


src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/pylint/test/test_func.py   modern-python-example(Download)
def suite():
    return testlib.TestSuite([unittest.makeSuite(test, suiteClass=testlib.TestSuite)
                              for test in make_tests(FILTER_RGX)])
 
if __name__=='__main__':

src/z/o/zope.testrunner-4.4.3/src/zope/testrunner/tests/testrunner-ex/sampletestsf.py   zope.testrunner(Download)
def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestA))
    suite.addTest(unittest.makeSuite(TestA2))
    suite.addTest(unittest.makeSuite(TestB))
    suite.addTest(unittest.makeSuite(TestNotMuch))
    suite.addTest(doctest.DocTestSuite(setUp=setUp))
    suite.addTest(doctest.DocFileSuite('sampletests.txt', setUp=setUp))
    suite.addTest(unittest.makeSuite(TestA1))

src/z/o/zope.testrunner-4.4.3/src/zope/testrunner/tests/testrunner-ex/sample1/sample11/sampletests.py   zope.testrunner(Download)
def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestA))
    suite.addTest(unittest.makeSuite(TestA3))
    suite.addTest(unittest.makeSuite(TestB))
    suite.addTest(unittest.makeSuite(TestB2))
    suite.addTest(unittest.makeSuite(TestNotMuch))

src/o/t/ottwatch-HEAD/lib/gdata/samples/apps/marketplace_sample/gdata/test_config.py   ottwatch(Download)
    A new unittest.TestSuite containing a test suite for all classes.   
  """
  suites = [unittest.makeSuite(a_class, 'test') for a_class in classes]
  return unittest.TestSuite(suites)
 

src/g/d/gdata-2.0.18/samples/apps/marketplace_sample/gdata/test_config.py   gdata(Download)
    A new unittest.TestSuite containing a test suite for all classes.   
  """
  suites = [unittest.makeSuite(a_class, 'test') for a_class in classes]
  return unittest.TestSuite(suites)
 

src/z/o/zope.testrunner-4.4.3/src/zope/testrunner/tests/testrunner-ex/sampletests_buffering.py   zope.testrunner(Download)
def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestSomething1))
    suite.addTest(unittest.makeSuite(TestSomething2))
    return suite

src/z/o/zope.testrunner-4.4.3/src/zope/testrunner/tests/testrunner-ex/sample2/sampletests/test_1.py   zope.testrunner(Download)
def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestA))
    suite.addTest(unittest.makeSuite(TestB))
    suite.addTest(unittest.makeSuite(TestNotMuch))

src/z/o/zope.testrunner-4.4.3/src/zope/testrunner/tests/testrunner-ex/sample2/sampletests/testone.py   zope.testrunner(Download)
def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestA))
    suite.addTest(unittest.makeSuite(TestB))
    suite.addTest(unittest.makeSuite(TestNotMuch))

src/z/o/zope.testrunner-4.4.3/src/zope/testrunner/tests/testrunner-ex/sample2/sample21/sampletests.py   zope.testrunner(Download)
def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestA))
    suite.addTest(unittest.makeSuite(TestB))
    suite.addTest(unittest.makeSuite(TestNotMuch))

src/z/o/zope.testrunner-4.4.3/src/zope/testrunner/tests/testrunner-ex/sample1/sampletests/test_one.py   zope.testrunner(Download)
def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestA))
    suite.addTest(unittest.makeSuite(TestB))
    suite.addTest(unittest.makeSuite(TestNotMuch))

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