Did I find the right examples for you? yes no

All Samples(21099)  |  Call(18627)  |  Derive(434)  |  Import(2038)
A test suite is a composite test consisting of a number of TestCases.

For use, create an instance of TestSuite, then add test case instances.
When all tests have been added, the suite can be passed to a test
runner, such as TextTestRunner. It will run the individual test cases
in the order in which they were added, aggregating the results. When
subclassing, do not forget to call the base class constructor.

src/z/o/zope.testrunner-4.4.3/src/zope/testrunner/tests/testrunner-ex/sample3/sampletests_d.py   zope.testrunner(Download)
def test_suite():
    return unittest.TestSuite((
        doctest.DocTestSuite(),
        unittest.makeSuite(TestSomething),
        doctest.DocFileSuite('set_trace5.txt'),

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/__init__.py   modern-python-example(Download)
    if config is None:
        config = {}
    suite = unittest.TestSuite()
    if module is None:
        if tests is None:
 
if __name__ == '__main__':
    suite = lambda: unittest.TestSuite(get_tests())
    unittest.main(defaultTest='suite')
 

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/Random/OSRNG/test_winrandom.py   modern-python-example(Download)
 
if __name__ == '__main__':
    suite = lambda: unittest.TestSuite(get_tests())
    unittest.main(defaultTest='suite')
 

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/Random/OSRNG/test_posix.py   modern-python-example(Download)
 
if __name__ == '__main__':
    suite = lambda: unittest.TestSuite(get_tests())
    unittest.main(defaultTest='suite')
 

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/Random/OSRNG/test_nt.py   modern-python-example(Download)
 
if __name__ == '__main__':
    suite = lambda: unittest.TestSuite(get_tests())
    unittest.main(defaultTest='suite')
 

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/Random/OSRNG/test_generic.py   modern-python-example(Download)
 
if __name__ == '__main__':
    suite = lambda: unittest.TestSuite(get_tests())
    unittest.main(defaultTest='suite')
 

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/Random/OSRNG/test_fallback.py   modern-python-example(Download)
 
if __name__ == '__main__':
    suite = lambda: unittest.TestSuite(get_tests())
    unittest.main(defaultTest='suite')
 

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/Util/test_winrandom.py   modern-python-example(Download)
 
if __name__ == '__main__':
    suite = lambda: unittest.TestSuite(get_tests())
    unittest.main(defaultTest='suite')
 

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/Random/test_rpoolcompat.py   modern-python-example(Download)
 
if __name__ == '__main__':
    suite = lambda: unittest.TestSuite(get_tests())
    unittest.main(defaultTest='suite')
 

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/Cipher/test_XOR.py   modern-python-example(Download)
if __name__ == '__main__':
    import unittest
    suite = lambda: unittest.TestSuite(get_tests())
    unittest.main(defaultTest='suite')
 

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