Module Expr Str Assign NameStore Str Assign NameStore SubscriptLoad Str Slice Num Num Assign NameStore Str Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore TupleLoad Assign NameStore Dict Assign NameStore Str Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr For NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Pass finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr CompareIn NameLoad TupleLoad Num Num Num Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr CompareIn NameLoad TupleLoad Str Str Str Str Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num attr Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Str Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr TupleLoad Str orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr TupleLoad Str orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Dict Str Str orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr TupleLoad Str orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Dict Str Str orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Assign NameStore ListLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Str TupleLoad Str Assign NameStore ListLoad Dict Str Str Dict Str Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Assign NameStore ListLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num finalbody Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore ListLoad Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Str Assign NameStore ListLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr ListLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr ListLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad Str body Return TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad NameLoad Index Num Call NameLoad AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad NameLoad Str finalbody Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Num Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Str decorator_list decorator_list
N/A N/A  Python DB API 2.0 driver compliance unit test suite. 
    
    This software is Public Domain and may be used without restrictions.

 "Now we have booze and barflies entering the discussion, plus rumours of
  DBAs on drugs... and I won't tell you what flashes through my mind each
  time I read the subject line with 'Anal Compliance' in it.  All around
  this is turning out to be a thoroughly unwholesome unit test."

    -- Ian Bicking
 N/A __rcs_id__ $Id$ N/A __version__ N/A $Revision$ N/A 11 -2 N/A __author__ Stuart Bishop <zen@shangri-la.dropbear.id.au> N/A unittest N/A time DatabaseAPI20Test N/A N/A unittest TestCase N/A N/A  Test a database self.driver for DB API 2.0 compatibility.
        This implementation tests Gadfly, but the TestCase
        is structured so that other self.drivers can subclass this 
        test case to ensure compiliance with the DB-API. It is 
        expected that this TestCase may be expanded in the future
        if ambiguities or edge conditions are discovered.

        The 'Optional Extensions' are not yet being tested.

        self.drivers should subclass this test, overriding setUp, tearDown,
        self.driver, connect_args and connect_kw_args. Class specification
        should be as follows:

        import dbapi20 
        class mytest(dbapi20.DatabaseAPI20Test):
           [...] 

        Don't 'import DatabaseAPI20Test from dbapi20', or you will
        confuse the unit tester - just 'import dbapi20'.
     N/A driver None N/A connect_args N/A N/A connect_kw_args N/A N/A table_prefix dbapi20test_ N/A ddl1 N/A create table %sbooze (name varchar(20)) table_prefix N/A ddl2 N/A create table %sbarflys (name varchar(20)) table_prefix N/A xddl1 N/A drop table %sbooze table_prefix N/A xddl2 N/A drop table %sbarflys table_prefix N/A lowerfunc lower executeDDL1 N/A N/A self cursor N/A N/A N/A N/A N/A cursor execute N/A self ddl1 N/A executeDDL2 N/A N/A self cursor N/A N/A N/A N/A N/A cursor execute N/A self ddl2 N/A setUp N/A N/A self N/A N/A N/A  self.drivers should override this method to perform required setup
            if any is necessary, such as creating the database.
         N/A N/A tearDown N/A N/A self N/A N/A N/A  self.drivers should override this method to perform required cleanup
            if any is necessary, such as deleting the test database.
            The default drops the tables that may be created.
         N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A ddl N/A N/A self xddl1 N/A self xddl2 N/A N/A N/A N/A N/A N/A cur execute ddl N/A N/A N/A con commit N/A N/A N/A N/A N/A self driver Error N/A N/A N/A N/A N/A N/A con close N/A _connect N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self driver connect N/A self connect_args N/A self connect_kw_args N/A N/A N/A AttributeError N/A N/A N/A N/A self fail No connect method found in self.driver module N/A test_connect N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A con close N/A test_apilevel N/A N/A self N/A N/A N/A N/A N/A apilevel N/A N/A self driver apilevel N/A N/A N/A self assertEqual apilevel 2.0 N/A N/A N/A AttributeError N/A N/A N/A N/A self fail Driver doesn't define apilevel N/A test_threadsafety N/A N/A self N/A N/A N/A N/A N/A threadsafety N/A N/A self driver threadsafety N/A N/A N/A self assertTrue N/A threadsafety N/A 0 1 2 3 N/A N/A N/A AttributeError N/A N/A N/A N/A self fail Driver doesn't define threadsafety N/A test_paramstyle N/A N/A self N/A N/A N/A N/A N/A paramstyle N/A N/A self driver paramstyle N/A N/A N/A self assertTrue N/A paramstyle N/A qmark numeric named format pyformat N/A N/A N/A AttributeError N/A N/A N/A N/A self fail Driver doesn't define paramstyle N/A test_Exceptions N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A issubclass N/A N/A self driver Warning StandardError N/A N/A N/A self assertTrue N/A issubclass N/A N/A self driver Error StandardError N/A N/A N/A self assertTrue N/A issubclass N/A N/A self driver InterfaceError N/A N/A self driver Error N/A N/A N/A self assertTrue N/A issubclass N/A N/A self driver DatabaseError N/A N/A self driver Error N/A N/A N/A self assertTrue N/A issubclass N/A N/A self driver OperationalError N/A N/A self driver Error N/A N/A N/A self assertTrue N/A issubclass N/A N/A self driver IntegrityError N/A N/A self driver Error N/A N/A N/A self assertTrue N/A issubclass N/A N/A self driver InternalError N/A N/A self driver Error N/A N/A N/A self assertTrue N/A issubclass N/A N/A self driver ProgrammingError N/A N/A self driver Error N/A N/A N/A self assertTrue N/A issubclass N/A N/A self driver NotSupportedError N/A N/A self driver Error N/A test_ExceptionsAsConnectionAttributes N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A drv N/A self driver N/A N/A N/A self assertTrue N/A N/A con Warning N/A drv Warning N/A N/A N/A self assertTrue N/A N/A con Error N/A drv Error N/A N/A N/A self assertTrue N/A N/A con InterfaceError N/A drv InterfaceError N/A N/A N/A self assertTrue N/A N/A con DatabaseError N/A drv DatabaseError N/A N/A N/A self assertTrue N/A N/A con OperationalError N/A drv OperationalError N/A N/A N/A self assertTrue N/A N/A con IntegrityError N/A drv IntegrityError N/A N/A N/A self assertTrue N/A N/A con InternalError N/A drv InternalError N/A N/A N/A self assertTrue N/A N/A con ProgrammingError N/A drv ProgrammingError N/A N/A N/A self assertTrue N/A N/A con NotSupportedError N/A drv NotSupportedError N/A test_commit N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A N/A N/A con commit N/A N/A N/A N/A con close N/A test_rollback N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A hasattr con rollback N/A N/A N/A N/A N/A N/A con rollback N/A N/A N/A N/A N/A self driver NotSupportedError N/A N/A N/A test_cursor N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A N/A con close N/A test_cursor_isolation N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur1 N/A N/A con cursor N/A cur2 N/A N/A con cursor N/A N/A N/A self executeDDL1 cur1 N/A N/A N/A cur1 execute N/A insert into %sbooze values ('Victoria Bitter') N/A self table_prefix N/A N/A N/A cur2 execute N/A select name from %sbooze N/A self table_prefix N/A booze N/A N/A cur2 fetchall N/A N/A N/A self assertEqual N/A len booze 1 N/A N/A N/A self assertEqual N/A len N/A booze N/A 0 1 N/A N/A N/A self assertEqual N/A N/A booze N/A 0 N/A 0 Victoria Bitter N/A N/A N/A N/A con close N/A test_description N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A self executeDDL1 cur N/A N/A N/A self assertEqual N/A cur description None cursor.description should be none after executing a statement that can return no rows (such as DDL) N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A N/A N/A self assertEqual N/A len N/A cur description 1 cursor.description describes too many columns N/A N/A N/A self assertEqual N/A len N/A N/A cur description N/A 0 7 cursor.description[x] tuples must have 7 elements N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A cur description N/A 0 N/A 0 lower name cursor.description[x][0] must return column name N/A N/A N/A self assertEqual N/A N/A N/A cur description N/A 0 N/A 1 N/A N/A self driver STRING N/A cursor.description[x][1] must return column type. Got %r N/A N/A N/A cur description N/A 0 N/A 1 N/A N/A N/A self executeDDL2 cur N/A N/A N/A self assertEqual N/A cur description None cursor.description not being set to None when executing no-result statements (eg. DDL) N/A N/A N/A N/A con close N/A test_rowcount N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A self executeDDL1 cur N/A N/A N/A self assertEqual N/A cur rowcount -1 cursor.rowcount should be -1 after executing no-result statements N/A N/A N/A cur execute N/A insert into %sbooze values ('Victoria Bitter') N/A self table_prefix N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 1 cursor.rowcount should == number or rows inserted, or set to -1 after executing an insert statement N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 1 cursor.rowcount should == number of rows returned, or set to -1 after executing a select statement N/A N/A N/A self executeDDL2 cur N/A N/A N/A self assertEqual N/A cur rowcount -1 cursor.rowcount not being reset to -1 after executing no-result statements N/A N/A N/A N/A con close N/A N/A lower_func lower test_callproc N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A self lower_func N/A hasattr cur callproc N/A N/A r N/A N/A cur callproc N/A self lower_func N/A FOO N/A N/A N/A self assertEqual N/A len r 1 N/A N/A N/A self assertEqual N/A r N/A 0 FOO N/A r N/A N/A cur fetchall N/A N/A N/A self assertEqual N/A len r 1 callproc produced no result set N/A N/A N/A self assertEqual N/A len N/A r N/A 0 1 callproc produced invalid result set N/A N/A N/A self assertEqual N/A N/A r N/A 0 N/A 0 foo callproc produced invalid results N/A N/A N/A N/A con close N/A test_close N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A N/A con close N/A N/A N/A self assertRaises N/A N/A self driver Error N/A self executeDDL1 cur N/A N/A N/A self assertRaises N/A N/A self driver Error N/A con commit N/A N/A N/A self assertRaises N/A N/A self driver Error N/A con close N/A test_execute N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A self _paraminsert cur N/A N/A N/A N/A con close N/A _paraminsert N/A N/A self cur N/A N/A N/A N/A N/A self executeDDL1 cur N/A N/A N/A cur execute N/A insert into %sbooze values ('Victoria Bitter') N/A self table_prefix N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 1 N/A N/A N/A N/A self driver paramstyle qmark N/A N/A N/A N/A cur execute N/A insert into %sbooze values (?) N/A self table_prefix N/A Cooper's N/A N/A N/A N/A N/A self driver paramstyle numeric N/A N/A N/A N/A cur execute N/A insert into %sbooze values (:1) N/A self table_prefix N/A Cooper's N/A N/A N/A N/A N/A self driver paramstyle named N/A N/A N/A N/A cur execute N/A insert into %sbooze values (:beer) N/A self table_prefix N/A beer Cooper's N/A N/A N/A N/A N/A self driver paramstyle format N/A N/A N/A N/A cur execute N/A insert into %sbooze values (%%s) N/A self table_prefix N/A Cooper's N/A N/A N/A N/A N/A self driver paramstyle pyformat N/A N/A N/A N/A cur execute N/A insert into %sbooze values (%%(beer)s) N/A self table_prefix N/A beer Cooper's N/A N/A N/A N/A self fail Invalid paramstyle N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 1 N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A res N/A N/A cur fetchall N/A N/A N/A self assertEqual N/A len res 2 cursor.fetchall returned too few rows N/A beers N/A N/A N/A res N/A 0 N/A 0 N/A N/A res N/A 1 N/A 0 N/A N/A N/A beers sort N/A N/A N/A self assertEqual N/A beers N/A 0 Cooper's cursor.fetchall retrieved incorrect data, or data inserted incorrectly N/A N/A N/A self assertEqual N/A beers N/A 1 Victoria Bitter cursor.fetchall retrieved incorrect data, or data inserted incorrectly N/A test_executemany N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A self executeDDL1 cur N/A largs N/A N/A Cooper's N/A Boag's N/A margs N/A N/A beer Cooper's N/A beer Boag's N/A N/A N/A N/A self driver paramstyle qmark N/A N/A N/A N/A cur executemany N/A insert into %sbooze values (?) N/A self table_prefix largs N/A N/A N/A N/A N/A self driver paramstyle numeric N/A N/A N/A N/A cur executemany N/A insert into %sbooze values (:1) N/A self table_prefix largs N/A N/A N/A N/A N/A self driver paramstyle named N/A N/A N/A N/A cur executemany N/A insert into %sbooze values (:beer) N/A self table_prefix margs N/A N/A N/A N/A N/A self driver paramstyle format N/A N/A N/A N/A cur executemany N/A insert into %sbooze values (%%s) N/A self table_prefix largs N/A N/A N/A N/A N/A self driver paramstyle pyformat N/A N/A N/A N/A cur executemany N/A insert into %sbooze values (%%(beer)s) N/A self table_prefix margs N/A N/A N/A N/A self fail Unknown paramstyle N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 2 N/A insert using cursor.executemany set cursor.rowcount to incorrect value %r N/A cur rowcount N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A res N/A N/A cur fetchall N/A N/A N/A self assertEqual N/A len res 2 cursor.fetchall retrieved incorrect number of rows N/A beers N/A N/A N/A res N/A 0 N/A 0 N/A N/A res N/A 1 N/A 0 N/A N/A N/A beers sort N/A N/A N/A self assertEqual N/A beers N/A 0 Boag's incorrect data retrieved N/A N/A N/A self assertEqual N/A beers N/A 1 Cooper's incorrect data retrieved N/A N/A N/A N/A con close N/A test_fetchone N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A self assertRaises N/A N/A self driver Error N/A cur fetchone N/A N/A N/A self executeDDL1 cur N/A N/A N/A self assertRaises N/A N/A self driver Error N/A cur fetchone N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A N/A N/A self assertEqual N/A N/A cur fetchone None cursor.fetchone should return None if a query retrieves no rows N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 0 N/A N/A N/A cur execute N/A insert into %sbooze values ('Victoria Bitter') N/A self table_prefix N/A N/A N/A self assertRaises N/A N/A self driver Error N/A cur fetchone N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A r N/A N/A cur fetchone N/A N/A N/A self assertEqual N/A len r 1 cursor.fetchone should have retrieved a single row N/A N/A N/A self assertEqual N/A r N/A 0 Victoria Bitter cursor.fetchone retrieved incorrect data N/A N/A N/A self assertEqual N/A N/A cur fetchone None cursor.fetchone should return None if no more rows available N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 1 N/A N/A N/A N/A con close N/A N/A samples N/A Carlton Cold Carlton Draft Mountain Goat Redback Victoria Bitter XXXX _populate N/A N/A self N/A N/A N/A  Return a list of sql commands to setup the DB for the fetch
            tests.
         N/A populate N/A N/A insert into %sbooze values ('%s') N/A N/A self table_prefix s N/A s N/A self samples N/A populate N/A test_fetchmany N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A self assertRaises N/A N/A self driver Error N/A cur fetchmany 4 N/A N/A N/A self executeDDL1 cur N/A sql N/A N/A self _populate N/A N/A N/A N/A cur execute sql N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A r N/A N/A cur fetchmany N/A N/A N/A self assertEqual N/A len r 1 cursor.fetchmany retrieved incorrect number of rows, default of arraysize is one. N/A N/A cur arraysize 10 N/A r N/A N/A cur fetchmany 3 N/A N/A N/A self assertEqual N/A len r 3 cursor.fetchmany retrieved incorrect number of rows N/A r N/A N/A cur fetchmany 4 N/A N/A N/A self assertEqual N/A len r 2 cursor.fetchmany retrieved incorrect number of rows N/A r N/A N/A cur fetchmany 4 N/A N/A N/A self assertEqual N/A len r 0 cursor.fetchmany should return an empty sequence after results are exhausted N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 6 N/A N/A cur arraysize 4 N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A r N/A N/A cur fetchmany N/A N/A N/A self assertEqual N/A len r 4 cursor.arraysize not being honoured by fetchmany N/A r N/A N/A cur fetchmany N/A N/A N/A self assertEqual N/A len r 2 N/A r N/A N/A cur fetchmany N/A N/A N/A self assertEqual N/A len r 0 N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 6 N/A N/A cur arraysize 6 N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A rows N/A N/A cur fetchmany N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 6 N/A N/A N/A self assertEqual N/A len rows 6 N/A N/A N/A self assertEqual N/A len rows 6 N/A rows N/A N/A r N/A 0 N/A r rows N/A N/A N/A rows sort N/A i N/A range 0 6 N/A N/A N/A N/A self assertEqual N/A rows N/A i N/A N/A self samples N/A i incorrect data retrieved by cursor.fetchmany N/A rows N/A N/A cur fetchmany N/A N/A N/A self assertEqual N/A len rows 0 cursor.fetchmany should return an empty sequence if called after the whole result set has been fetched N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 6 N/A N/A N/A self executeDDL2 cur N/A N/A N/A cur execute N/A select name from %sbarflys N/A self table_prefix N/A r N/A N/A cur fetchmany N/A N/A N/A self assertEqual N/A len r 0 cursor.fetchmany should return an empty sequence if query retrieved no rows N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 0 N/A N/A N/A N/A con close N/A test_fetchall N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A self assertRaises N/A N/A self driver Error N/A cur fetchall N/A N/A N/A self executeDDL1 cur N/A sql N/A N/A self _populate N/A N/A N/A N/A cur execute sql N/A N/A N/A self assertRaises N/A N/A self driver Error N/A cur fetchall N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A rows N/A N/A cur fetchall N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 N/A len N/A self samples N/A N/A N/A self assertEqual N/A len rows N/A len N/A self samples cursor.fetchall did not retrieve all rows N/A rows N/A N/A r N/A 0 N/A r rows N/A N/A N/A rows sort N/A i N/A range 0 N/A len N/A self samples N/A N/A N/A N/A self assertEqual N/A rows N/A i N/A N/A self samples N/A i cursor.fetchall retrieved incorrect rows N/A rows N/A N/A cur fetchall N/A N/A N/A self assertEqual N/A len rows 0 cursor.fetchall should return an empty list if called after the whole result set has been fetched N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 N/A len N/A self samples N/A N/A N/A self executeDDL2 cur N/A N/A N/A cur execute N/A select name from %sbarflys N/A self table_prefix N/A rows N/A N/A cur fetchall N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 0 N/A N/A N/A self assertEqual N/A len rows 0 cursor.fetchall should return an empty list if a select query returns no rows N/A N/A N/A N/A con close N/A test_mixedfetch N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A self executeDDL1 cur N/A sql N/A N/A self _populate N/A N/A N/A N/A cur execute sql N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A rows1 N/A N/A cur fetchone N/A rows23 N/A N/A cur fetchmany 2 N/A rows4 N/A N/A cur fetchone N/A rows56 N/A N/A cur fetchall N/A N/A N/A self assertTrue N/A N/A cur rowcount N/A -1 6 N/A N/A N/A self assertEqual N/A len rows23 2 fetchmany returned incorrect number of rows N/A N/A N/A self assertEqual N/A len rows56 2 fetchall returned incorrect number of rows N/A rows N/A N/A rows1 N/A 0 N/A N/A N/A rows extend N/A N/A N/A rows23 N/A 0 N/A 0 N/A N/A rows23 N/A 1 N/A 0 N/A N/A N/A rows append N/A rows4 N/A 0 N/A N/A N/A rows extend N/A N/A N/A rows56 N/A 0 N/A 0 N/A N/A rows56 N/A 1 N/A 0 N/A N/A N/A rows sort N/A i N/A range 0 N/A len N/A self samples N/A N/A N/A N/A self assertEqual N/A rows N/A i N/A N/A self samples N/A i incorrect data retrieved or inserted N/A N/A N/A N/A con close N/A help_nextset_setUp N/A N/A self cur N/A N/A N/A  Should create a procedure called deleteme
            that returns two result sets, first the 
	    number of rows in booze then "name from booze"
         N/A N/A NotImplementedError Helper not implemented N/A help_nextset_tearDown N/A N/A self cur N/A N/A N/A If cleaning up is needed after nextSetTest N/A N/A NotImplementedError Helper not implemented N/A test_nextset N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A hasattr cur nextset N/A N/A N/A N/A N/A N/A N/A self executeDDL1 cur N/A sql N/A N/A self _populate N/A sql N/A N/A self _populate N/A N/A N/A N/A cur execute sql N/A N/A N/A self help_nextset_setUp cur N/A N/A N/A cur callproc deleteme N/A numberofrows N/A N/A cur fetchone N/A N/A N/A numberofrows N/A 0 N/A len N/A self samples N/A N/A N/A cur nextset N/A names N/A N/A cur fetchall N/A N/A N/A len names N/A len N/A self samples N/A s N/A N/A cur nextset N/A N/A s None No more return sets, should return None N/A N/A N/A N/A self help_nextset_tearDown cur N/A N/A N/A N/A con close N/A test_nextset N/A N/A self N/A N/A N/A N/A NotImplementedError Drivers need to override this test N/A test_arraysize N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A self assertTrue N/A hasattr cur arraysize cursor.arraysize must be defined N/A N/A N/A N/A con close N/A test_setinputsizes N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A cur setinputsizes N/A 25 N/A N/A N/A self _paraminsert cur N/A N/A N/A N/A con close N/A test_setoutputsize_basic N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A cur setoutputsize 1000 N/A N/A N/A cur setoutputsize 2000 0 N/A N/A N/A self _paraminsert cur N/A N/A N/A N/A con close N/A test_setoutputsize N/A N/A self N/A N/A N/A N/A NotImplementedError Driver need to override this test N/A test_None N/A N/A self N/A N/A N/A con N/A N/A self _connect N/A N/A N/A cur N/A N/A con cursor N/A N/A N/A self executeDDL1 cur N/A N/A N/A cur execute N/A insert into %sbooze values (NULL) N/A self table_prefix N/A N/A N/A cur execute N/A select name from %sbooze N/A self table_prefix N/A r N/A N/A cur fetchall N/A N/A N/A self assertEqual N/A len r 1 N/A N/A N/A self assertEqual N/A len N/A r N/A 0 1 N/A N/A N/A self assertEqual N/A N/A r N/A 0 N/A 0 None NULL value not returned as None N/A N/A N/A N/A con close N/A test_Date N/A N/A self N/A N/A N/A d1 N/A N/A N/A self driver Date 2002 12 25 N/A d2 N/A N/A N/A self driver DateFromTicks N/A N/A time mktime N/A 2002 12 25 0 0 0 0 0 0 N/A test_Time N/A N/A self N/A N/A N/A t1 N/A N/A N/A self driver Time 13 45 30 N/A t2 N/A N/A N/A self driver TimeFromTicks N/A N/A time mktime N/A 2001 1 1 13 45 30 0 0 0 N/A test_Timestamp N/A N/A self N/A N/A N/A t1 N/A N/A N/A self driver Timestamp 2002 12 25 13 45 30 N/A t2 N/A N/A N/A self driver TimestampFromTicks N/A N/A time mktime N/A 2002 12 25 13 45 30 0 0 0 N/A test_Binary N/A N/A self N/A N/A N/A b N/A N/A N/A self driver Binary Something N/A b N/A N/A N/A self driver Binary N/A test_STRING N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A hasattr N/A self driver STRING module.STRING must be defined N/A test_BINARY N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A hasattr N/A self driver BINARY module.BINARY must be defined. N/A test_NUMBER N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A hasattr N/A self driver NUMBER module.NUMBER must be defined. N/A test_DATETIME N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A hasattr N/A self driver DATETIME module.DATETIME must be defined. N/A test_ROWID N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A hasattr N/A self driver ROWID module.ROWID must be defined. N/A N/A