• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(388)  |  Call(385)  |  Derive(1)  |  Import(2)
A test case that wraps a test function.

This is useful for slipping pre-existing test functions into the
unittest framework. Optionally, set-up and tidy-up functions can be
supplied. As with TestCase, the tidy-up ('tearDown') function will
always be called if the set-up ('setUp') function ran successfully.

src/p/e/peckcheck-HEAD/peckcheck.py   peckcheck(Download)
 
# We import these remaining names so peckcheck can serve as a drop-in
# replacement for the unittest module.
from unittest import TestResult, TestSuite, FunctionTestCase
 
if __name__ == '__main__':
    main(module=None)

src/p/y/pyfo-0.6/pyfotest.py   pyfo(Download)
Luke Arno can be found at http://lukearno.com/
"""
import os
from unittest import FunctionTestCase, TestSuite, TextTestRunner
from difflib import unified_diff
from pyfo import pyfo
 
def suite():
    """Create test suite for functions fro gen_tests"""
    return TestSuite((FunctionTestCase(fn) for fn in gen_tests()))
 
 
if __name__ == '__main__':
    import sys