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

All Samples(745)  |  Call(622)  |  Derive(110)  |  Import(13)
Holder for test result information.

Test results are automatically managed by the TestCase and TestSuite
classes, and do not need to be explicitly manipulated by writers of tests.

Each instance holds the total number of tests run, and collections of
failures and errors that occurred among those test runs. The collections
contain tuples of (testcase, exceptioninfo), where exceptioninfo is the
formatted traceback of the error that occurred.

src/p/y/PyAMF-HEAD/doc/tutorials/examples/actionscript/google_appengine/punit/models.py   PyAMF(Download)
    def run(self, test):
        "Run the given test case or test suite."
        result = unittest.TestResult()
        test(result)
 
        if len(result.errors) > 0:
            for i in range(len(result.errors)):

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/python-specfor-HEAD/specfor/framework.py   python-specfor(Download)
    def run(self, spec, result=None):
        result = result or unittest.TestResult()
        for name in [n for n in dir(spec) if n.startswith("test")]:
            test = spec(name)
            test.run(result)
            pass
        return result

src/w/x/wxmap2-HEAD/trunk/app/src/python/BeautifulSoup-3.0.8.1/setup.py   wxmap2(Download)
#Make sure all the tests complete.
import BeautifulSoupTests
loader = unittest.TestLoader()
result = unittest.TestResult()
suite = loader.loadTestsFromModule(BeautifulSoupTests)
suite.run(result)
if not result.wasSuccessful():

src/p/y/pyphant-HEAD/trunk/src/support/xmlrunner.py   pyphant(Download)
class _XMLTestResult(unittest.TestResult):
 
    """A test result class that stores result as XML.
 
    Used by XMLTestRunner.
 
    """

src/w/x/wxmap2-HEAD/app/src/python/BeautifulSoup-3.0.8.1/setup.py   wxmap2(Download)
#Make sure all the tests complete.
import BeautifulSoupTests
loader = unittest.TestLoader()
result = unittest.TestResult()
suite = loader.loadTestsFromModule(BeautifulSoupTests)
suite.run(result)
if not result.wasSuccessful():

src/g/a/galateia-HEAD/tools/BeautifulSoup-3.1.0.1/setup.py   galateia(Download)
#Make sure all the tests complete.
import BeautifulSoupTests
loader = unittest.TestLoader()
result = unittest.TestResult()
suite = loader.loadTestsFromModule(BeautifulSoupTests)
suite.run(result)
if not result.wasSuccessful():

src/p/y/pyphant-HEAD/src/support/xmlrunner.py   pyphant(Download)
class _XMLTestResult(unittest.TestResult):
 
    """A test result class that stores result as XML.
 
    Used by XMLTestRunner.
 
    """

src/p/y/PyECC-HEAD/xmlrunner.py   PyECC(Download)
class _XMLTestResult(unittest.TestResult):
 
    """A test result class that stores result as XML.
 
    Used by XMLTestRunner.
 
    """

src/p/y/python-specfor-0.1.0/specfor/framework.py   python-specfor(Download)
    def run(self, spec, result=None):
        result = result or unittest.TestResult()
        for name in [n for n in dir(spec) if n.startswith("test")]:
            test = spec(name)
            test.run(result)
            pass
        return result

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