Server: appserver-7f0f8755-nginx-15961cad18524ec5a9db05f2a6a7e440
Current directory: /usr/lib/python2.7/unittest
Software: nginx/1.27.5
Shell Command
Create a new file
Upload file
File: __init__.pyc
� ӫ[c @ s8 d Z d d d d d d d d d d d d d d d d d d g Z e j d d d g � e Z d d l m Z d d l m Z m Z m Z m Z m Z m Z m Z d d l m Z m Z d d l m Z m Z m Z m Z m Z d d l m Z m Z d d l m Z m Z d d l m Z m Z m Z m! Z! e Z" d S( s� Python unit testing framework, based on Erich Gamma's JUnit and Kent Beck's Smalltalk testing framework. This module contains the core framework classes that form the basis of specific test cases and suites (TestCase, TestSuite etc.), and also a text-based utility class for running the tests and reporting the results (TextTestRunner). Simple usage: import unittest class IntegerArithmeticTestCase(unittest.TestCase): def testAdd(self): ## test method names begin 'test*' self.assertEqual((1 + 2), 3) self.assertEqual(0 + 1, 1) def testMultiply(self): self.assertEqual((0 * 10), 0) self.assertEqual((5 * 8), 40) if __name__ == '__main__': unittest.main() Further information is available in the bundled documentation, and from http://docs.python.org/library/unittest.html Copyright (c) 1999-2003 Steve Purcell Copyright (c) 2003-2010 Python Software Foundation This module is free software, and you may redistribute it and/or modify it under the same terms as Python itself, so long as this copyright message and disclaimer are retained in their original form. IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. t TestResultt TestCaset TestSuitet TextTestRunnert TestLoadert FunctionTestCaset maint defaultTestLoadert SkipTestt skipt skipIft skipUnlesst expectedFailuret TextTestResultt installHandlert registerResultt removeResultt removeHandlert getTestCaseNamest makeSuitet findTestCasesi ( R ( R R R R R R R ( t BaseTestSuiteR ( R R R R R ( t TestProgramR ( R R ( R R R R N(# t __doc__t __all__t extendt Truet __unittestt resultR t caseR R R R R R R t suiteR R t loaderR R R R R R R t runnerR R t signalsR R R R t _TextTestResult( ( ( s' /usr/lib/python2.7/unittest/__init__.pyt
- s 4("
.
20 Items
Change directory
Remove directory
Rename directory
..
442 Items
Change directory
Remove directory
Rename directory
__init__.py
2.65 KB
Edit
Delete
Copy
Move
Remame
__init__.pyc
2.89 KB
Edit
Delete
Copy
Move
Remame
__main__.py
0.23 KB
Edit
Delete
Copy
Move
Remame
__main__.pyc
0.47 KB
Edit
Delete
Copy
Move
Remame
case.py
41.73 KB
Edit
Delete
Copy
Move
Remame
case.pyc
39.24 KB
Edit
Delete
Copy
Move
Remame
loader.py
13.15 KB
Edit
Delete
Copy
Move
Remame
loader.pyc
11.04 KB
Edit
Delete
Copy
Move
Remame
main.py
8.87 KB
Edit
Delete
Copy
Move
Remame
main.pyc
7.79 KB
Edit
Delete
Copy
Move
Remame
result.py
6.16 KB
Edit
Delete
Copy
Move
Remame
result.pyc
7.69 KB
Edit
Delete
Copy
Move
Remame
runner.py
6.38 KB
Edit
Delete
Copy
Move
Remame
runner.pyc
7.41 KB
Edit
Delete
Copy
Move
Remame
signals.py
2.35 KB
Edit
Delete
Copy
Move
Remame
signals.pyc
2.68 KB
Edit
Delete
Copy
Move
Remame
suite.py
9.58 KB
Edit
Delete
Copy
Move
Remame
suite.pyc
10.22 KB
Edit
Delete
Copy
Move
Remame
util.py
4.5 KB
Edit
Delete
Copy
Move
Remame
util.pyc
4.4 KB
Edit
Delete
Copy
Move
Remame