Module Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore SubscriptLoad Str Slice Num Num Import alias Import alias Import alias Import alias Import alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str If CompareLt SubscriptLoad AttributeLoad NameLoad attr Slice Num TupleLoad Num Num body FunctionDef arguments args NameParam NameParam defaults body Import alias If CompareIn Call NameLoad NameLoad TupleLoad NameLoad NameLoad body For NameStore NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad NameLoad body Return Num Return Num orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore Num ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareEqEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameLoad While BoolOpAnd NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num While BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num Assign NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults Str body Expr Str TryExcept body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Return Num decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Return BoolOpOr BoolOpAnd NameLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot Call NameLoad NameLoad Call NameLoad NameLoad body Return NameLoad Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad TupleLoad Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Return Assign NameStore NameLoad TryExcept body Expr Call NameLoad Assign NameStore NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr ExceptHandler type NameLoad body Raise ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Raise AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Raise AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Raise AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Str TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad NameLoad Raise AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot CompareEq NameLoad NameLoad body Raise AttributeLoad NameLoad attr BoolOpOr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareEq NameLoad NameLoad body Raise AttributeLoad NameLoad attr BoolOpOr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Str If CompareNotEq Call NameLoad Call NameLoad BinOpSub NameLoad NameLoad NameLoad Num body Raise AttributeLoad NameLoad attr BoolOpOr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Str If CompareEq Call NameLoad Call NameLoad BinOpSub NameLoad NameLoad NameLoad Num body Raise AttributeLoad NameLoad attr BoolOpOr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore NameStore NameLoad Assign NameStore NameStore NameLoad Assign NameStore NameStore NameLoad Assign NameStore NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults TupleLoad body Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot Call NameLoad NameLoad Call NameLoad NameLoad body Return NameLoad Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot CompareEq NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num For NameStore AttributeLoad NameLoad attr body AugAssignAdd NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Raise Call NameLoad Str If BoolOpAnd Call NameLoad NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Break Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot Call NameLoad NameLoad Call NameLoad NameLoad body Return NameLoad Return BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad TupleLoad Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return BoolOpOr BoolOpAnd NameLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd UnaryOpNot NameLoad Call NameLoad NameLoad Str body Assign NameStore ListLoad Str Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpAnd Call NameLoad NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice While NameLoad body TryExcept body Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad Break handlers ExceptHandler type NameLoad body Delete SubscriptDel NameLoad Index Num If UnaryOpNot NameLoad body Raise Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore NameLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad Call NameLoad NameLoad NameLoad If CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd Call NameLoad NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad body Return Call NameLoad ListLoad Call NameLoad AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Return NameLoad orelse If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad If Call NameLoad NameLoad NameLoad body Return NameLoad orelse If Call NameLoad NameLoad NameLoad body Return Call NameLoad ListLoad NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr body Return BoolOpAnd Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Str decorator_list Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Return Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Return Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore BinOpMult Str Num Assign NameStore BinOpMult Str Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr CompareGt NameLoad Num Assign AttributeStore NameLoad attr CompareEq NameLoad Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Return BoolOpOr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr Num Num body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad BoolOpOr BoolOpAnd CompareNotEq NameLoad Num Str Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad If NameLoad body If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad NameLoad body If CompareEq Call NameLoad NameLoad Call NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad NameLoad For NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Print NameLoad Print BinOpMod AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Import alias TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Str ListLoad Str Str Str For TupleStore NameStore NameStore NameLoad body If CompareIn NameLoad TupleLoad Str Str Str body Expr Call AttributeLoad NameLoad attr If CompareIn NameLoad TupleLoad Str Str body Assign AttributeStore NameLoad attr Num If CompareIn NameLoad TupleLoad Str Str body Assign AttributeStore NameLoad attr Num If BoolOpAnd CompareEq Call NameLoad NameLoad Num CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return If CompareGt Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore NameLoad If CompareEq NameLoad Str body Expr Call NameLoad keyword NameLoad
N/A N/A 
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 IntegerArithmenticTestCase(unittest.TestCase):
        def testAdd(self):  ## test method names begin 'test*'
            self.assertEquals((1 + 2), 3)
            self.assertEquals(0 + 1, 1)
        def testMultiply(self):
            self.assertEquals((0 * 10), 0)
            self.assertEquals((5 * 8), 40)

    if __name__ == '__main__':
        unittest.main()

Further information is available in the bundled documentation, and from

  http://docs.python.org/lib/module-unittest.html

Copyright (c) 1999-2003 Steve Purcell
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.
 N/A __author__ Steve Purcell N/A __email__ stephen_purcell at yahoo dot com N/A __version__ N/A #Revision: 1.63 $ N/A 11 -2 N/A time N/A sys N/A traceback N/A os N/A types N/A __all__ N/A TestResult TestCase TestSuite TextTestRunner TestLoader FunctionTestCase main defaultTestLoader N/A N/A N/A __all__ extend N/A getTestCaseNames makeSuite findTestCases N/A N/A N/A N/A sys version_info N/A 2 N/A 2 2 N/A isinstance N/A N/A obj clsinfo N/A N/A N/A __builtin__ N/A N/A N/A type clsinfo N/A tuple list N/A N/A cls clsinfo N/A N/A N/A cls type N/A N/A cls N/A types ClassType N/A N/A N/A __builtin__ isinstance obj cls N/A N/A 1 N/A 0 N/A N/A N/A N/A __builtin__ isinstance obj clsinfo N/A _CmpToKey N/A N/A mycmp N/A N/A N/A Convert a cmp= function into a key= function K N/A object N/A __init__ N/A N/A self obj N/A N/A N/A N/A self obj obj N/A __lt__ N/A N/A self other N/A N/A N/A N/A N/A mycmp N/A self obj N/A other obj -1 N/A N/A N/A K N/A N/A __metaclass__ type _strclass N/A N/A cls N/A N/A N/A N/A %s.%s N/A N/A cls __module__ N/A cls __name__ N/A N/A __unittest 1 TestResult N/A N/A N/A 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.
     __init__ N/A N/A self N/A N/A N/A N/A self failures N/A N/A N/A self errors N/A N/A N/A self testsRun 0 N/A N/A self shouldStop False N/A startTest N/A N/A self test N/A N/A N/A Called when the given test is about to be run N/A N/A self testsRun N/A N/A self testsRun 1 N/A stopTest N/A N/A self test N/A N/A N/A Called when the given test has been run N/A N/A addError N/A N/A self test err N/A N/A N/A Called when an error has occurred. 'err' is a tuple of values as
        returned by sys.exc_info().
         N/A N/A N/A N/A self errors append N/A test N/A N/A self _exc_info_to_string err test N/A addFailure N/A N/A self test err N/A N/A N/A Called when an error has occurred. 'err' is a tuple of values as
        returned by sys.exc_info(). N/A N/A N/A N/A self failures append N/A test N/A N/A self _exc_info_to_string err test N/A addSuccess N/A N/A self test N/A N/A N/A Called when a test has completed successfully N/A N/A wasSuccessful N/A N/A self N/A N/A N/A Tells whether or not this result was a success N/A N/A N/A len N/A self failures N/A len N/A self errors 0 N/A stop N/A N/A self N/A N/A N/A Indicates that the tests should be aborted N/A N/A self shouldStop True N/A _exc_info_to_string N/A N/A self err test N/A N/A N/A Converts a sys.exc_info()-style tuple of values into a string. N/A N/A exctype value tb err N/A N/A tb N/A N/A self _is_relevant_tb_level tb N/A N/A tb N/A tb tb_next N/A N/A exctype N/A test failureException N/A N/A length N/A N/A self _count_relevant_tb_levels tb N/A N/A N/A join N/A N/A traceback format_exception exctype value tb length N/A N/A N/A join N/A N/A traceback format_exception exctype value tb N/A _is_relevant_tb_level N/A N/A self tb N/A N/A N/A N/A __unittest N/A N/A tb tb_frame f_globals N/A _count_relevant_tb_levels N/A N/A self tb N/A N/A N/A length 0 N/A N/A tb N/A N/A N/A self _is_relevant_tb_level tb N/A N/A length 1 N/A tb N/A tb tb_next N/A length N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s run=%i errors=%i failures=%i> N/A N/A _strclass N/A self __class__ N/A self testsRun N/A len N/A self errors N/A len N/A self failures N/A N/A TestCase N/A N/A N/A A class whose instances are single test cases.

    By default, the test code itself should be placed in a method named
    'runTest'.

    If the fixture may be used for many test cases, create as
    many test methods as are needed. When instantiating such a TestCase
    subclass, specify in the constructor arguments the name of the test method
    that the instance is to execute.

    Test authors should subclass TestCase for their own tests. Construction
    and deconstruction of the test's environment ('fixture') can be
    implemented by overriding the 'setUp' and 'tearDown' methods respectively.

    If it is necessary to override the __init__ method, the base class
    __init__ method must always be called. It is important that subclasses
    should not change the signature of their __init__ method, since instances
    of the classes are instantiated automatically by parts of the framework
    in order to be run.
     N/A failureException AssertionError __init__ N/A N/A self methodName N/A runTest N/A N/A Create an instance of the class that will use the named test
           method when executed. Raises a ValueError if the instance does
           not have a method with the specified name.
         N/A N/A N/A N/A self _testMethodName methodName N/A testMethod N/A getattr self methodName N/A N/A self _testMethodDoc N/A testMethod __doc__ N/A N/A N/A AttributeError N/A N/A ValueError N/A no such test method in %s: %s N/A N/A self __class__ methodName N/A setUp N/A N/A self N/A N/A N/A Hook method for setting up the test fixture before exercising it. N/A N/A tearDown N/A N/A self N/A N/A N/A Hook method for deconstructing the test fixture after testing it. N/A N/A countTestCases N/A N/A self N/A N/A N/A 1 N/A defaultTestResult N/A N/A self N/A N/A N/A N/A TestResult N/A shortDescription N/A N/A self N/A N/A N/A Returns a one-line description of the test, or None if no
        description has been provided.

        The default implementation of this method returns the first line of
        the specified test method's docstring.
         N/A doc N/A self _testMethodDoc N/A N/A N/A doc N/A N/A N/A N/A N/A doc split N/A 0 strip None N/A id N/A N/A self N/A N/A N/A N/A %s.%s N/A N/A _strclass N/A self __class__ N/A self _testMethodName N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A type self N/A type other N/A N/A False N/A N/A N/A self _testMethodName N/A other _testMethodName N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A self other N/A __hash__ N/A N/A self N/A N/A N/A N/A hash N/A N/A type self N/A self _testMethodName N/A __str__ N/A N/A self N/A N/A N/A N/A %s (%s) N/A N/A self _testMethodName N/A _strclass N/A self __class__ N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s testMethod=%s> N/A N/A _strclass N/A self __class__ N/A self _testMethodName N/A run N/A N/A self result N/A None N/A N/A N/A result None N/A N/A result N/A N/A self defaultTestResult N/A N/A N/A result startTest self N/A testMethod N/A getattr self N/A self _testMethodName N/A N/A N/A N/A N/A N/A N/A self setUp N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A N/A N/A N/A result addError self N/A N/A self _exc_info N/A N/A ok False N/A N/A N/A N/A testMethod N/A ok True N/A N/A N/A N/A self failureException N/A N/A N/A N/A result addFailure self N/A N/A self _exc_info N/A N/A KeyboardInterrupt N/A N/A N/A N/A N/A N/A N/A result addError self N/A N/A self _exc_info N/A N/A N/A N/A N/A self tearDown N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A N/A N/A N/A result addError self N/A N/A self _exc_info N/A ok False N/A ok N/A N/A N/A N/A result addSuccess self N/A N/A N/A N/A result stopTest self N/A __call__ N/A N/A self N/A args kwds N/A N/A N/A N/A self run args kwds N/A debug N/A N/A self N/A N/A N/A Run the test without collecting errors in a TestResult N/A N/A N/A self setUp N/A N/A N/A getattr self N/A self _testMethodName N/A N/A N/A self tearDown N/A _exc_info N/A N/A self N/A N/A N/A Return a version of sys.exc_info() with the traceback frame
           minimised; usually the top level of the traceback frame is not
           needed.
         N/A N/A N/A sys exc_info N/A fail N/A N/A self msg N/A None N/A N/A Fail immediately, with the given message. N/A N/A self failureException msg N/A failIf N/A N/A self expr msg N/A None N/A N/A Fail the test if the expression is true. N/A expr N/A N/A N/A self failureException msg N/A failUnless N/A N/A self expr msg N/A None N/A N/A Fail the test unless the expression is true. N/A N/A expr N/A N/A N/A self failureException msg N/A failUnlessRaises N/A N/A self excClass callableObj N/A args kwargs N/A N/A Fail unless an exception of class excClass is thrown
           by callableObj when invoked with arguments args and keyword
           arguments kwargs. If a different type of exception is
           thrown, it will not be caught, and the test case will be
           deemed to have suffered an error, exactly as for an
           unexpected exception.
         N/A N/A N/A N/A callableObj args kwargs N/A N/A N/A excClass N/A N/A N/A N/A N/A hasattr excClass __name__ N/A N/A excName N/A excClass __name__ N/A N/A excName N/A str excClass N/A N/A self failureException N/A %s not raised excName N/A failUnlessEqual N/A N/A self first second msg N/A None N/A N/A Fail if the two objects are unequal as determined by the '=='
           operator.
         N/A N/A N/A first second N/A N/A N/A self failureException N/A msg N/A %r != %r N/A first second N/A failIfEqual N/A N/A self first second msg N/A None N/A N/A Fail if the two objects are equal as determined by the '=='
           operator.
         N/A N/A first second N/A N/A N/A self failureException N/A msg N/A %r == %r N/A first second N/A failUnlessAlmostEqual N/A N/A self first second places msg N/A 7 None N/A N/A Fail if the two objects are unequal as determined by their
           difference rounded to the given number of decimal places
           (default 7) and comparing to zero.

           Note that decimal places (from zero) are usually not the same
           as significant digits (measured from the most signficant digit).
         N/A N/A N/A round N/A abs N/A second first places 0 N/A N/A N/A self failureException N/A msg N/A %r != %r within %r places N/A first second places N/A failIfAlmostEqual N/A N/A self first second places msg N/A 7 None N/A N/A Fail if the two objects are equal as determined by their
           difference rounded to the given number of decimal places
           (default 7) and comparing to zero.

           Note that decimal places (from zero) are usually not the same
           as significant digits (measured from the most signficant digit).
         N/A N/A N/A round N/A abs N/A second first places 0 N/A N/A N/A self failureException N/A msg N/A %r == %r within %r places N/A first second places N/A N/A assertEqual assertEquals failUnlessEqual N/A assertNotEqual assertNotEquals failIfEqual N/A assertAlmostEqual assertAlmostEquals failUnlessAlmostEqual N/A assertNotAlmostEqual assertNotAlmostEquals failIfAlmostEqual N/A assertRaises failUnlessRaises N/A assert_ assertTrue failUnless N/A assertFalse failIf N/A TestSuite N/A N/A N/A 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.
     __init__ N/A N/A self tests N/A N/A N/A N/A N/A self _tests N/A N/A N/A N/A self addTests tests N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s tests=%s> N/A N/A _strclass N/A self __class__ N/A self _tests N/A N/A __str__ __repr__ __eq__ N/A N/A self other N/A N/A N/A N/A N/A type self N/A type other N/A N/A False N/A N/A N/A self _tests N/A other _tests N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A self other N/A N/A __hash__ None __iter__ N/A N/A self N/A N/A N/A N/A iter N/A self _tests N/A countTestCases N/A N/A self N/A N/A N/A cases 0 N/A test N/A self _tests N/A N/A cases N/A N/A test countTestCases N/A cases N/A addTest N/A N/A self test N/A N/A N/A N/A N/A hasattr test __call__ N/A N/A N/A TypeError the test to add must be callable N/A N/A N/A isinstance test N/A type N/A types ClassType N/A issubclass test N/A TestCase TestSuite N/A N/A N/A TypeError TestCases and TestSuites must be instantiated before passing them to addTest() N/A N/A N/A N/A self _tests append test N/A addTests N/A N/A self tests N/A N/A N/A N/A isinstance tests basestring N/A N/A N/A TypeError tests must be an iterable of tests, not a string N/A test tests N/A N/A N/A N/A self addTest test N/A run N/A N/A self result N/A N/A N/A test N/A self _tests N/A N/A N/A result shouldStop N/A N/A N/A N/A test result N/A result N/A __call__ N/A N/A self N/A args kwds N/A N/A N/A N/A self run args kwds N/A debug N/A N/A self N/A N/A N/A Run the tests without collecting errors in a TestResult N/A test N/A self _tests N/A N/A N/A N/A test debug N/A N/A FunctionTestCase N/A TestCase N/A N/A 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.
     __init__ N/A N/A self testFunc setUp tearDown description N/A None None None N/A N/A N/A N/A TestCase __init__ self N/A N/A self __setUpFunc setUp N/A N/A self __tearDownFunc tearDown N/A N/A self __testFunc testFunc N/A N/A self __description description N/A setUp N/A N/A self N/A N/A N/A N/A N/A self __setUpFunc None N/A N/A N/A N/A self __setUpFunc N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self __tearDownFunc None N/A N/A N/A N/A self __tearDownFunc N/A runTest N/A N/A self N/A N/A N/A N/A N/A self __testFunc N/A id N/A N/A self N/A N/A N/A N/A N/A self __testFunc __name__ N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A type self N/A type other N/A N/A False N/A N/A N/A N/A self __setUpFunc N/A other __setUpFunc N/A N/A self __tearDownFunc N/A other __tearDownFunc N/A N/A self __testFunc N/A other __testFunc N/A N/A self __description N/A other __description N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A self other N/A __hash__ N/A N/A self N/A N/A N/A N/A hash N/A N/A type self N/A self __setUpFunc N/A self __tearDownFunc N/A self __testFunc N/A self __description N/A __str__ N/A N/A self N/A N/A N/A N/A %s (%s) N/A N/A _strclass N/A self __class__ N/A N/A self __testFunc __name__ N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s testFunc=%s> N/A N/A _strclass N/A self __class__ N/A self __testFunc N/A shortDescription N/A N/A self N/A N/A N/A N/A N/A self __description None N/A N/A N/A self __description N/A doc N/A N/A self __testFunc __doc__ N/A N/A N/A doc N/A N/A N/A N/A N/A doc split N/A 0 strip None N/A N/A TestLoader N/A N/A N/A This class is responsible for loading tests according to various
    criteria and returning them wrapped in a TestSuite
     N/A testMethodPrefix test N/A sortTestMethodsUsing cmp N/A suiteClass TestSuite loadTestsFromTestCase N/A N/A self testCaseClass N/A N/A N/A Return a suite of all tests cases contained in testCaseClass N/A N/A issubclass testCaseClass TestSuite N/A N/A N/A TypeError Test cases should not be derived from TestSuite. Maybe you meant to derive from TestCase? N/A testCaseNames N/A N/A self getTestCaseNames testCaseClass N/A N/A N/A testCaseNames N/A hasattr testCaseClass runTest N/A N/A testCaseNames N/A runTest N/A N/A N/A self suiteClass N/A map testCaseClass testCaseNames N/A loadTestsFromModule N/A N/A self module N/A N/A N/A Return a suite of all tests cases contained in the given module N/A tests N/A N/A name N/A dir module N/A N/A obj N/A getattr module name N/A N/A N/A isinstance obj N/A type N/A types ClassType N/A issubclass obj TestCase N/A N/A N/A N/A tests append N/A N/A self loadTestsFromTestCase obj N/A N/A N/A self suiteClass tests N/A loadTestsFromName N/A N/A self name module N/A None N/A N/A Return a suite of all tests cases given a string specifier.

        The name may resolve either to a module, a test case class, a
        test method within a test case class, or a callable object which
        returns a TestCase or TestSuite instance.

        The method optionally resolves the names relative to a given module.
         N/A parts N/A N/A name split . N/A N/A module None N/A N/A parts_copy N/A parts N/A N/A parts_copy N/A N/A N/A N/A module N/A __import__ N/A N/A . join parts_copy N/A N/A N/A N/A ImportError N/A N/A N/A parts_copy N/A -1 N/A N/A parts_copy N/A N/A N/A parts N/A parts N/A 1 N/A obj module N/A part parts N/A N/A N/A parent obj N/A obj N/A getattr obj part N/A N/A N/A type obj N/A types ModuleType N/A N/A N/A N/A self loadTestsFromModule obj N/A N/A N/A N/A isinstance obj N/A type N/A types ClassType N/A issubclass obj TestCase N/A N/A N/A N/A self loadTestsFromTestCase obj N/A N/A N/A N/A N/A type obj N/A types UnboundMethodType N/A isinstance parent N/A type N/A types ClassType N/A issubclass parent TestCase N/A N/A N/A TestSuite N/A N/A parent N/A obj __name__ N/A N/A N/A isinstance obj TestSuite N/A N/A obj N/A N/A N/A hasattr obj __call__ N/A N/A test N/A obj N/A N/A isinstance test TestSuite N/A N/A test N/A N/A N/A isinstance test TestCase N/A N/A N/A TestSuite N/A test N/A N/A N/A TypeError N/A calling %s returned %s, not a test N/A obj test N/A N/A N/A TypeError N/A don't know how to make test from: %s obj N/A loadTestsFromNames N/A N/A self names module N/A None N/A N/A Return a suite of all tests cases found using the given sequence
        of string specifiers. See 'loadTestsFromName()'.
         N/A suites N/A N/A N/A self loadTestsFromName name module N/A name names N/A N/A N/A self suiteClass suites N/A getTestCaseNames N/A N/A self testCaseClass N/A N/A N/A Return a sorted sequence of method names found within testCaseClass
         isTestMethod N/A N/A attrname testCaseClass prefix N/A testCaseClass N/A self testMethodPrefix N/A N/A N/A N/A N/A attrname startswith prefix N/A hasattr N/A getattr testCaseClass attrname __call__ N/A N/A testFnNames N/A filter isTestMethod N/A dir testCaseClass N/A N/A self sortTestMethodsUsing N/A N/A N/A N/A testFnNames sort key N/A _CmpToKey N/A self sortTestMethodsUsing N/A testFnNames N/A N/A N/A defaultTestLoader N/A TestLoader _makeLoader N/A N/A prefix sortUsing suiteClass N/A None N/A N/A loader N/A TestLoader N/A N/A loader sortTestMethodsUsing sortUsing N/A N/A loader testMethodPrefix prefix N/A suiteClass N/A N/A N/A loader suiteClass suiteClass N/A loader N/A getTestCaseNames N/A N/A testCaseClass prefix sortUsing N/A cmp N/A N/A N/A N/A N/A _makeLoader prefix sortUsing getTestCaseNames testCaseClass N/A makeSuite N/A N/A testCaseClass prefix sortUsing suiteClass N/A test cmp TestSuite N/A N/A N/A N/A N/A _makeLoader prefix sortUsing suiteClass loadTestsFromTestCase testCaseClass N/A findTestCases N/A N/A module prefix sortUsing suiteClass N/A test cmp TestSuite N/A N/A N/A N/A N/A _makeLoader prefix sortUsing suiteClass loadTestsFromModule module N/A _WritelnDecorator N/A N/A N/A Used to decorate file-like objects with a handy 'writeln' method __init__ N/A N/A self stream N/A N/A N/A N/A self stream stream N/A __getattr__ N/A N/A self attr N/A N/A N/A N/A getattr N/A self stream attr N/A writeln N/A N/A self arg N/A None N/A N/A arg N/A N/A N/A N/A self write arg N/A N/A N/A self write N/A N/A _TextTestResult N/A TestResult N/A N/A A test result class that can print formatted text results to a stream.

    Used by TextTestRunner.
     N/A separator1 N/A = 70 N/A separator2 N/A - 70 __init__ N/A N/A self stream descriptions verbosity N/A N/A N/A N/A N/A TestResult __init__ self N/A N/A self stream stream N/A N/A self showAll N/A verbosity 1 N/A N/A self dots N/A verbosity 1 N/A N/A self descriptions descriptions N/A getDescription N/A N/A self test N/A N/A N/A N/A self descriptions N/A N/A N/A N/A N/A test shortDescription N/A str test N/A N/A N/A str test N/A startTest N/A N/A self test N/A N/A N/A N/A N/A TestResult startTest self test N/A N/A self showAll N/A N/A N/A N/A N/A self stream write N/A N/A self getDescription test N/A N/A N/A N/A self stream write  ...  N/A N/A N/A N/A self stream flush N/A addSuccess N/A N/A self test N/A N/A N/A N/A N/A TestResult addSuccess self test N/A N/A self showAll N/A N/A N/A N/A N/A self stream writeln ok N/A N/A N/A self dots N/A N/A N/A N/A N/A self stream write . N/A N/A N/A N/A self stream flush N/A addError N/A N/A self test err N/A N/A N/A N/A N/A TestResult addError self test err N/A N/A self showAll N/A N/A N/A N/A N/A self stream writeln ERROR N/A N/A N/A self dots N/A N/A N/A N/A N/A self stream write E N/A N/A N/A N/A self stream flush N/A addFailure N/A N/A self test err N/A N/A N/A N/A N/A TestResult addFailure self test err N/A N/A self showAll N/A N/A N/A N/A N/A self stream writeln FAIL N/A N/A N/A self dots N/A N/A N/A N/A N/A self stream write F N/A N/A N/A N/A self stream flush N/A printErrors N/A N/A self N/A N/A N/A N/A N/A self dots N/A self showAll N/A N/A N/A N/A N/A self stream writeln N/A N/A N/A self printErrorList ERROR N/A self errors N/A N/A N/A self printErrorList FAIL N/A self failures N/A printErrorList N/A N/A self flavour errors N/A N/A N/A N/A test err errors N/A N/A N/A N/A N/A self stream writeln N/A self separator1 N/A N/A N/A N/A self stream writeln N/A %s: %s N/A flavour N/A N/A self getDescription test N/A N/A N/A N/A self stream writeln N/A self separator2 N/A N/A N/A N/A self stream writeln N/A %s err N/A N/A TextTestRunner N/A N/A N/A A test runner class that displays results in textual form.

    It prints out the names of tests as they are run, errors as they
    occur, and a summary of the results at the end of the test run.
     __init__ N/A N/A self stream descriptions verbosity N/A N/A sys stderr 1 1 N/A N/A N/A self stream N/A _WritelnDecorator stream N/A N/A self descriptions descriptions N/A N/A self verbosity verbosity N/A _makeResult N/A N/A self N/A N/A N/A N/A _TextTestResult N/A self stream N/A self descriptions N/A self verbosity N/A run N/A N/A self test N/A N/A N/A Run the given test case or test suite. N/A result N/A N/A self _makeResult N/A startTime N/A N/A time time N/A N/A test result N/A stopTime N/A N/A time time N/A timeTaken N/A stopTime startTime N/A N/A N/A result printErrors N/A N/A N/A N/A self stream writeln N/A result separator2 N/A run N/A result testsRun N/A N/A N/A N/A self stream writeln N/A Ran %d test%s in %.3fs N/A run N/A N/A N/A run 1 s timeTaken N/A N/A N/A N/A self stream writeln N/A N/A N/A N/A result wasSuccessful N/A N/A N/A N/A N/A self stream write FAILED ( N/A N/A failed errored N/A map len N/A N/A result failures N/A result errors N/A failed N/A N/A N/A N/A N/A self stream write N/A failures=%d failed N/A errored N/A N/A failed N/A N/A N/A N/A N/A self stream write ,  N/A N/A N/A N/A self stream write N/A errors=%d errored N/A N/A N/A N/A self stream writeln ) N/A N/A N/A N/A N/A self stream writeln OK N/A result N/A N/A TestProgram N/A N/A N/A A command-line program that runs a set of tests; this is primarily
       for making test modules conveniently executable.
     N/A USAGE Usage: %(progName)s [options] [test] [...]

Options:
  -h, --help       Show this message
  -v, --verbose    Verbose output
  -q, --quiet      Minimal output

Examples:
  %(progName)s                               - run default set of tests
  %(progName)s MyTestSuite                   - run suite 'MyTestSuite'
  %(progName)s MyTestCase.testSomething      - run MyTestCase.testSomething
  %(progName)s MyTestCase                    - run all 'test*' test methods
                                               in MyTestCase
 __init__ N/A N/A self module defaultTest argv testRunner testLoader N/A __main__ None None TextTestRunner defaultTestLoader N/A N/A N/A N/A type module N/A type N/A N/A N/A self module N/A __import__ module N/A part N/A N/A N/A module split . N/A 1 N/A N/A N/A self module N/A getattr N/A self module part N/A N/A N/A self module module N/A N/A argv None N/A N/A argv N/A sys argv N/A N/A self verbosity 1 N/A N/A self defaultTest defaultTest N/A N/A self testRunner testRunner N/A N/A self testLoader testLoader N/A N/A self progName N/A N/A N/A os path basename N/A argv N/A 0 N/A N/A N/A self parseArgs argv N/A N/A N/A self runTests N/A usageExit N/A N/A self msg N/A None N/A N/A msg N/A N/A msg N/A N/A N/A self USAGE N/A self __dict__ N/A N/A N/A sys exit 2 N/A parseArgs N/A N/A self argv N/A N/A N/A getopt N/A N/A N/A N/A options args N/A N/A getopt getopt N/A argv N/A 1 hHvq N/A help verbose quiet N/A N/A opt value options N/A N/A N/A opt N/A -h -H --help N/A N/A N/A N/A self usageExit N/A N/A opt N/A -q --quiet N/A N/A N/A self verbosity 0 N/A N/A opt N/A -v --verbose N/A N/A N/A self verbosity 2 N/A N/A N/A N/A len args 0 N/A N/A self defaultTest None N/A N/A N/A self test N/A N/A N/A self testLoader loadTestsFromModule N/A self module N/A N/A N/A N/A len args 0 N/A N/A N/A self testNames args N/A N/A N/A self testNames N/A N/A self defaultTest N/A N/A N/A self createTests N/A N/A N/A N/A getopt error N/A msg N/A N/A N/A N/A self usageExit msg N/A createTests N/A N/A self N/A N/A N/A N/A self test N/A N/A N/A self testLoader loadTestsFromNames N/A self testNames N/A self module N/A runTests N/A N/A self N/A N/A N/A N/A isinstance N/A self testRunner N/A type N/A types ClassType N/A N/A N/A N/A testRunner N/A N/A self testRunner verbosity N/A self verbosity N/A N/A N/A TypeError N/A N/A testRunner N/A N/A self testRunner N/A N/A testRunner N/A self testRunner N/A result N/A N/A testRunner run N/A self test N/A N/A N/A sys exit N/A N/A N/A result wasSuccessful N/A N/A N/A main TestProgram N/A N/A __name__ __main__ N/A N/A N/A main module None