+++ /dev/null
-"""\r
-Python unit testing framework, based on Erich Gamma's JUnit and Kent Beck's\r
-Smalltalk testing framework.\r
-\r
-This module contains the core framework classes that form the basis of\r
-specific test cases and suites (TestCase, TestSuite etc.), and also a\r
-text-based utility class for running the tests and reporting the results\r
- (TextTestRunner).\r
-\r
-Simple usage:\r
-\r
- import unittest\r
-\r
- class IntegerArithmenticTestCase(unittest.TestCase):\r
- def testAdd(self): ## test method names begin 'test*'\r
- self.assertEqual((1 + 2), 3)\r
- self.assertEqual(0 + 1, 1)\r
- def testMultiply(self):\r
- self.assertEqual((0 * 10), 0)\r
- self.assertEqual((5 * 8), 40)\r
-\r
- if __name__ == '__main__':\r
- unittest.main()\r
-\r
-Further information is available in the bundled documentation, and from\r
-\r
- http://docs.python.org/library/unittest.html\r
-\r
-Copyright (c) 1999-2003 Steve Purcell\r
-Copyright (c) 2003-2010 Python Software Foundation\r
-This module is free software, and you may redistribute it and/or modify\r
-it under the same terms as Python itself, so long as this copyright message\r
-and disclaimer are retained in their original form.\r
-\r
-IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,\r
-SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF\r
-THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH\r
-DAMAGE.\r
-\r
-THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT\r
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\r
-PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,\r
-AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,\r
-SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.\r
-"""\r
-\r
-__all__ = ['TestResult', 'TestCase', 'TestSuite',\r
- 'TextTestRunner', 'TestLoader', 'FunctionTestCase', 'main',\r
- 'defaultTestLoader', 'SkipTest', 'skip', 'skipIf', 'skipUnless',\r
- 'expectedFailure', 'TextTestResult', 'installHandler',\r
- 'registerResult', 'removeResult', 'removeHandler']\r
-\r
-# Expose obsolete functions for backwards compatibility\r
-__all__.extend(['getTestCaseNames', 'makeSuite', 'findTestCases'])\r
-\r
-__unittest = True\r
-\r
-from .result import TestResult\r
-from .case import (TestCase, FunctionTestCase, SkipTest, skip, skipIf,\r
- skipUnless, expectedFailure)\r
-from .suite import BaseTestSuite, TestSuite\r
-from .loader import (TestLoader, defaultTestLoader, makeSuite, getTestCaseNames,\r
- findTestCases)\r
-from .main import TestProgram, main\r
-from .runner import TextTestRunner, TextTestResult\r
-from .signals import installHandler, registerResult, removeResult, removeHandler\r
-\r
-# deprecated\r
-_TextTestResult = TextTestResult\r