Did I find the right examples for you? yes no

All Samples(226)  |  Call(213)  |  Derive(0)  |  Import(13)

        def findTestCases(module, prefix='test', sortUsing=cmp,
                  suiteClass=suite.TestSuite):
    return _makeLoader(prefix, sortUsing, suiteClass).loadTestsFromModule(module)
        


src/i/r/IronWatin-HEAD/IronWatin.py   IronWatin(Download)
        kwargs['verbosity'] = 2
 
    tests = unittest.findTestCases(sys.modules['__main__'])
    runner = WatinTestRunner(**kwargs)
    rc = runner.run(tests)

src/f/i/fileinfo-0.3.3/src/fileinfo/fileinfo.py   fileinfo(Download)
    import unittest
    from test import test_fileinfo
    suite = unittest.findTestCases(test_fileinfo)
    unittest.TextTestRunner().run(suite)
    sys.exit()

src/s/e/server-easy-install-HEAD/resources/pyactiveresource/src/tests/alltests.py   server-easy-install(Download)
        for token in name.split('.')[1:]:
            mod = getattr(mod, token)
        alltests.addTest(unittest.findTestCases(mod, suiteClass=None))
    return alltests
 

src/y/o/youtrack-rest-python-library-HEAD/python/pyactiveresource/tests/alltests.py   youtrack-rest-python-library(Download)
        for token in name.split('.')[1:]:
            mod = getattr(mod, token)
        alltests.addTest(unittest.findTestCases(mod, suiteClass=None))
    return alltests
 

src/p/y/pyactiveresource-HEAD/src/tests/alltests.py   pyactiveresource(Download)
        for token in name.split('.')[1:]:
            mod = getattr(mod, token)
        alltests.addTest(unittest.findTestCases(mod, suiteClass=None))
    return alltests
 

src/m/y/mythbox-HEAD/resources/test/runtests.py   mythbox(Download)
def suite():
    mysuite = unittest.TestSuite()
    mysuite.addTest(unittest.findTestCases(mythboxtest.test_platform))
    mysuite.addTest(unittest.findTestCases(mythboxtest.test_util))
    mysuite.addTest(unittest.findTestCases(mythboxtest.test_log))
    mysuite.addTest(unittest.findTestCases(mythboxtest.mythtv.test_db))
    mysuite.addTest(unittest.findTestCases(mythboxtest.mythtv.test_conn))

src/c/h/Cheetah-2.4.4/cheetah/Tests/Test.py   Cheetah(Download)
 
suites = [
   unittest.findTestCases(SyntaxAndOutput),
   unittest.findTestCases(NameMapper),
   unittest.findTestCases(Filters),
   unittest.findTestCases(Template),
   #unittest.findTestCases(Cheps),
   unittest.findTestCases(Regressions),

src/c/h/cheetah-HEAD/cheetah/Tests/Test.py   cheetah(Download)
 
suites = [
   unittest.findTestCases(SyntaxAndOutput),
   unittest.findTestCases(NameMapper),
   unittest.findTestCases(Filters),
   unittest.findTestCases(Template),
   #unittest.findTestCases(Cheps),
   unittest.findTestCases(Regressions),

src/c/a/cardgen-HEAD/cheetah/Tests/Test.py   cardgen(Download)
 
suites = [
   unittest.findTestCases(SyntaxAndOutput),
   unittest.findTestCases(NameMapper),
   unittest.findTestCases(Filters),
   unittest.findTestCases(Template),
   #unittest.findTestCases(Cheps),
   unittest.findTestCases(Regressions),

src/p/y/pytaint-HEAD/Python-2.7.5-pytaint/Lib/test/test_support.py   pytaint(Download)
        if isinstance(cls, str):
            if cls in sys.modules:
                suite.addTest(unittest.findTestCases(sys.modules[cls]))
            else:
                raise ValueError("str arguments must be keys in sys.modules")

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