Module Import alias ImportFrom alias ImportFrom alias identifier TryExcept body ImportFrom alias handlers ExceptHandler body ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword Str keyword ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad keyword Str keyword ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Num keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Dict Num Num Num Str Str Str Assign NameStore TupleLoad Str Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Call NameLoad Str Str Call NameLoad Assign NameStore TupleLoad Dict Str Str Str SubscriptLoad AttributeLoad NameLoad attr Index Num Dict Str Str Str SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Str keyword Call NameLoad Call NameLoad NameLoad keyword Call NameLoad keyword NameLoad Call NameLoad Str Str keyword Call NameLoad Call NameLoad NameLoad Str NameLoad keyword NameLoad Call NameLoad Str Call NameLoad Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad CompareEq AttributeLoad NameLoad attr Str attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad CompareIn NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Continue orelse Assign NameStore Call NameLoad NameLoad Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad CompareIn NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Continue orelse Assign NameStore Call NameLoad NameLoad Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad Call NameLoad NameLoad Num keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad Expr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad CompareIn NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Continue orelse Assign NameStore Call NameLoad NameLoad Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad NameLoad Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad keyword NameLoad Expr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad CompareIn NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str Continue orelse Assign NameStore Call NameLoad NameLoad Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str If BoolOpAnd CompareIn Str SubscriptLoad NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad CompareIn NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Continue orelse Assign NameStore Call NameLoad NameLoad Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad NameLoad Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad CompareIn NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Continue orelse Assign NameStore Call NameLoad NameLoad Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str If BoolOpAnd CompareIn Str SubscriptLoad NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str BinOpAdd Call NameLoad NameLoad Num For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq NameLoad Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Continue orelse Assign NameStore Call NameLoad NameLoad Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad NameLoad Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str BinOpAdd Call NameLoad NameLoad Num For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq NameLoad Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Continue orelse Assign NameStore Call NameLoad NameLoad Expr Call NameLoad CompareIn NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str If BoolOpAnd CompareIn Str SubscriptLoad NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad CompareGt AttributeLoad NameLoad attr Num attr keyword TupleLoad Num Num keyword UnaryOpInvert AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore SubscriptLoad NameLoad Index Str Expr Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad NameLoad Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad CompareGt AttributeLoad NameLoad attr Num attr keyword TupleLoad Num Num keyword UnaryOpInvert AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Str keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore SubscriptLoad NameLoad Index Str Expr Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Str decorator_list decorator_list FunctionDef arguments args defaults vararg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr keyword Num attr NameLoad Return decorator_list If CompareEq NameLoad Str body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad
N/A N/A unittest gluon * gluon.contrib simplejson json N/A N/A cStringIO StringIO N/A N/A N/A StringIO StringIO lxml etree s3 S3Hierarchy s3_meta_fields S3Represent S3XMLFormat IS_ONE_OF TreeBuilderTests N/A N/A unittest TestCase N/A testEmptyTree N/A N/A self N/A N/A N/A xml N/A current xml N/A tree N/A N/A xml tree None N/A root N/A N/A tree getroot N/A attrib N/A root attrib N/A N/A N/A self assertEqual N/A root tag N/A N/A xml TAG root N/A N/A N/A self assertEqual N/A len attrib 1 N/A N/A N/A self assertEqual N/A attrib N/A success false N/A testIncludeMaxBounds N/A N/A self N/A N/A N/A xml N/A current xml N/A tree N/A N/A xml tree None maxbounds True N/A root N/A N/A tree getroot N/A attrib N/A root attrib N/A N/A N/A self assertEqual N/A root tag N/A N/A xml TAG root N/A N/A N/A self assertEqual N/A len attrib 5 N/A N/A N/A self assertEqual N/A attrib N/A success false N/A N/A N/A self assertTrue N/A latmin attrib N/A N/A N/A self assertTrue N/A latmax attrib N/A N/A N/A self assertTrue N/A lonmin attrib N/A N/A N/A self assertTrue N/A lonmax attrib N/A N/A JSONMessageTests N/A N/A unittest TestCase N/A testDefaultSuccessMessage N/A N/A self N/A N/A N/A  Test whether 200 issued by default if success=True  N/A json_message N/A N/A current xml json_message N/A msg N/A json_message N/A msg N/A N/A json loads msg N/A N/A N/A self assertEqual N/A len msg 2 N/A N/A N/A self assertEqual N/A msg N/A status success N/A N/A N/A self assertEqual N/A msg N/A statuscode 200 N/A testDefaultErrorMessage N/A N/A self N/A N/A N/A  Test whether 404 issued by default if success=False  N/A json_message N/A N/A current xml json_message N/A msg N/A json_message False N/A msg N/A N/A json loads msg N/A N/A N/A self assertEqual N/A len msg 2 N/A N/A N/A self assertEqual N/A msg N/A status failed N/A N/A N/A self assertEqual N/A msg N/A statuscode 404 N/A testExtendedSuccessMessage N/A N/A self N/A N/A N/A  Test success message with specified message text  N/A json_message N/A N/A current xml json_message N/A msg N/A json_message True message Test N/A msg N/A N/A json loads msg N/A N/A N/A self assertEqual N/A len msg 3 N/A N/A N/A self assertEqual N/A msg N/A status success N/A N/A N/A self assertEqual N/A msg N/A statuscode 200 N/A N/A N/A self assertEqual N/A msg N/A message Test N/A testExtendedSuccessMessageWithResultNumber N/A N/A self N/A N/A N/A  Test success message with specified message text  N/A json_message N/A N/A current xml json_message N/A msg N/A json_message True message Test results 40 N/A msg N/A N/A json loads msg N/A N/A N/A self assertEqual N/A len msg 4 N/A N/A N/A self assertEqual N/A msg N/A status success N/A N/A N/A self assertEqual N/A msg N/A statuscode 200 N/A N/A N/A self assertEqual N/A msg N/A message Test N/A N/A N/A self assertEqual N/A msg N/A results 40 N/A testExtendedSuccessMessageWithSenderID N/A N/A self N/A N/A N/A  Test success message with specified message text  N/A json_message N/A N/A current xml json_message N/A msg N/A json_message True message Test sender XYZ N/A msg N/A N/A json loads msg N/A N/A N/A self assertEqual N/A len msg 4 N/A N/A N/A self assertEqual N/A msg N/A status success N/A N/A N/A self assertEqual N/A msg N/A statuscode 200 N/A N/A N/A self assertEqual N/A msg N/A message Test N/A N/A N/A self assertEqual N/A msg N/A sender XYZ N/A testExtendedSuccessMessageWithCreatedIDs N/A N/A self N/A N/A N/A  Test success message with specified message text  N/A json_message N/A N/A current xml json_message N/A msg N/A json_message True message Test created N/A 1 2 3 N/A msg N/A N/A json loads msg N/A N/A N/A self assertEqual N/A len msg 4 N/A N/A N/A self assertEqual N/A msg N/A status success N/A N/A N/A self assertEqual N/A msg N/A statuscode 200 N/A N/A N/A self assertEqual N/A msg N/A message Test N/A N/A N/A self assertEqual N/A msg N/A created N/A 1 2 3 N/A testExtendedSuccessMessageWithUpdatedIDs N/A N/A self N/A N/A N/A  Test success message with specified message text  N/A json_message N/A N/A current xml json_message N/A msg N/A json_message True message Test updated N/A 1 2 3 N/A msg N/A N/A json loads msg N/A N/A N/A self assertEqual N/A len msg 4 N/A N/A N/A self assertEqual N/A msg N/A status success N/A N/A N/A self assertEqual N/A msg N/A statuscode 200 N/A N/A N/A self assertEqual N/A msg N/A message Test N/A N/A N/A self assertEqual N/A msg N/A updated N/A 1 2 3 N/A testExtendedErrorMessage N/A N/A self N/A N/A N/A  Test error message with specified error code and text  N/A json_message N/A N/A current xml json_message N/A msg N/A json_message False 405 message Test N/A msg N/A N/A json loads msg N/A N/A N/A self assertEqual N/A len msg 3 N/A N/A N/A self assertEqual N/A msg N/A status failed N/A N/A N/A self assertEqual N/A msg N/A statuscode 405 N/A N/A N/A self assertEqual N/A msg N/A message Test N/A testExtendedErrorMessageWithTree N/A N/A self N/A N/A N/A  Test error message with specified error code, text and JSON tree  N/A json_message N/A N/A current xml json_message N/A msg N/A json_message False 405 message Test tree {"test": "value"} N/A msg N/A N/A json loads msg N/A N/A N/A self assertEqual N/A len msg 4 N/A N/A N/A self assertEqual N/A msg N/A status failed N/A N/A N/A self assertEqual N/A msg N/A statuscode 405 N/A N/A N/A self assertEqual N/A msg N/A message Test N/A N/A N/A self assertTrue N/A isinstance N/A msg N/A tree dict N/A tree N/A msg N/A tree N/A N/A N/A self assertEqual N/A len tree 1 N/A N/A N/A self assertEqual N/A tree N/A test value N/A N/A XMLFormatTests N/A N/A unittest TestCase N/A N/A  Test S3XMLFormat helper class  setUp N/A N/A self N/A N/A N/A xmlstr <?xml version="1.0"?><s3xml/> N/A stylesheet <?xml version="1.0"?>
<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:s3="http://eden.sahanafoundation.org/wiki/S3">

    <xsl:output method="xml"/>

    <s3:fields tables="gis_location" select="ALL"/>
    <s3:fields tables="org_office" exclude="site_id"/>
    <s3:fields tables="pr_person" select="ALL" exclude="last_name"/>
    <s3:fields tables="pr_*" select="pe_id" exclude="pe_label"/>
    <s3:fields tables="pr_c*" select="ALL"/>
    <s3:fields tables="ANY" select="location_id,site_id"/>

    <xsl:template match="/">
        <test>Test</test>
    </xsl:template>
</xsl:stylesheet> N/A N/A self tree N/A N/A etree ElementTree N/A N/A etree fromstring xmlstr N/A N/A self stylesheet N/A S3XMLFormat N/A StringIO stylesheet N/A testSelectAllFields N/A N/A self N/A N/A N/A N/A include exclude N/A N/A N/A self stylesheet get_fields gis_location N/A N/A N/A self assertEqual include None N/A N/A N/A self assertEqual exclude N/A N/A testSelectedFields N/A N/A self N/A N/A N/A N/A include exclude N/A N/A N/A self stylesheet get_fields org_facility N/A N/A N/A self assertTrue N/A location_id include N/A N/A N/A self assertTrue N/A site_id include N/A N/A N/A self assertEqual N/A len include 2 N/A N/A N/A self assertEqual exclude N/A N/A testExcludedFields N/A N/A self N/A N/A N/A N/A include exclude N/A N/A N/A self stylesheet get_fields pr_person N/A N/A N/A self assertEqual include None N/A N/A N/A self assertEqual exclude N/A last_name N/A testCombinedSelectedAndExcludedFields N/A N/A self N/A N/A N/A N/A include exclude N/A N/A N/A self stylesheet get_fields org_office N/A N/A N/A self assertEqual include N/A location_id N/A N/A N/A self assertEqual exclude N/A N/A testWildcard N/A N/A self N/A N/A N/A N/A include exclude N/A N/A N/A self stylesheet get_fields pr_address N/A N/A N/A self assertEqual include N/A pe_id N/A N/A N/A self assertEqual exclude N/A pe_label N/A N/A include exclude N/A N/A N/A self stylesheet get_fields pr_contact N/A N/A N/A self assertEqual include None N/A N/A N/A self assertEqual exclude N/A pe_label N/A testTransformation N/A N/A self N/A N/A N/A result N/A N/A N/A self stylesheet transform N/A self tree N/A root N/A N/A result getroot N/A N/A N/A self assertEqual N/A root tag test N/A N/A N/A self assertEqual N/A len root 0 N/A N/A N/A self assertEqual N/A root text Test N/A N/A GetFieldOptionsTests N/A N/A unittest TestCase N/A N/A  Test field options introspection method  N/A options N/A 1 2 3 fixed option 1 fixed option 2 fixed option 3 N/A uuids N/A OPTION1 OPTION2 setUpClass N/A N/A cls N/A N/A N/A db N/A current db N/A s3db N/A current s3db N/A N/A N/A s3db define_table fotest_lookup_table N/A Field name N/A Field parent reference fotest_lookup_table N/A s3_meta_fields N/A data N/A N/A name uuid option1 N/A N/A cls uuids N/A 0 N/A name uuid option2 N/A N/A cls uuids N/A 1 N/A table N/A db fotest_lookup_table N/A item data N/A N/A N/A N/A table insert item N/A options N/A cls options N/A represent N/A S3Represent lookup fotest_lookup_table N/A N/A N/A s3db define_table fotest_table N/A Field fixed_set integer requires N/A IS_EMPTY_OR N/A IS_IN_SET options represent N/A S3Represent options options N/A Field lookup reference fotest_lookup_table requires N/A IS_EMPTY_OR N/A IS_ONE_OF db fotest_lookup_table.id represent represent represent N/A Field noopts N/A s3_meta_fields N/A N/A N/A db commit N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A db N/A current db N/A N/A N/A N/A db fotest_table drop N/A N/A N/A N/A db fotest_lookup_table drop N/A N/A N/A db commit N/A classmethod setUp N/A N/A self N/A N/A N/A N/A N/A current auth override True N/A db N/A current db N/A table N/A db fotest_lookup_table N/A N/A self records N/A N/A N/A N/A N/A db N/A N/A N/A table uuid belongs N/A self uuids select as_dict N/A tearDown N/A N/A self N/A N/A N/A db N/A current db N/A table N/A db fotest_lookup_table N/A N/A N/A N/A db N/A N/A table uuid OPTION3 delete N/A N/A N/A current auth override False N/A testFixedOptionsSet N/A N/A self N/A N/A N/A  Test options lookup with fixed options set (dict)  N/A assertEqual N/A self assertEqual N/A assertTrue N/A self assertTrue N/A table N/A N/A current db fotest_table N/A xml N/A current xml N/A fo N/A N/A xml get_field_options table fixed_set N/A N/A assertTrue N/A isinstance fo N/A etree _Element N/A N/A assertEqual N/A fo tag select N/A ATTRIBUTE N/A xml ATTRIBUTE N/A VALUE N/A ATTRIBUTE value N/A options N/A self options N/A has_empty False N/A N/A N/A self assertEqual N/A len fo N/A N/A len options 1 N/A opt fo N/A N/A N/A assertEqual N/A opt tag option N/A attr N/A opt attrib N/A N/A assertTrue N/A VALUE attr N/A value N/A attr N/A VALUE N/A N/A value N/A N/A has_empty True N/A N/A assertEqual N/A opt text N/A N/A N/A value N/A int value N/A N/A assertTrue N/A value options N/A N/A assertEqual N/A opt text N/A options N/A value N/A N/A assertTrue has_empty msg Empty-option missing N/A testForeignKey N/A N/A self N/A N/A N/A  Test options lookup with foreign key constraint  N/A assertEqual N/A self assertEqual N/A assertTrue N/A self assertTrue N/A table N/A N/A current db fotest_table N/A xml N/A current xml N/A fo N/A N/A xml get_field_options table lookup N/A N/A assertTrue N/A isinstance fo N/A etree _Element N/A N/A assertEqual N/A fo tag select N/A ATTRIBUTE N/A xml ATTRIBUTE N/A VALUE N/A ATTRIBUTE value N/A options N/A self records N/A has_empty False N/A N/A N/A self assertEqual N/A len fo N/A N/A len options 1 N/A opt fo N/A N/A N/A assertEqual N/A opt tag option N/A attr N/A opt attrib N/A N/A assertTrue N/A VALUE attr N/A value N/A attr N/A VALUE N/A N/A value N/A N/A has_empty True N/A N/A assertEqual N/A opt text N/A N/A N/A value N/A int value N/A N/A assertTrue N/A value options N/A N/A assertEqual N/A opt text N/A N/A options N/A value N/A name N/A N/A assertTrue has_empty msg Empty-option missing N/A testFieldWithoutOptions N/A N/A self N/A N/A N/A  Test options lookup for field without options  N/A assertEqual N/A self assertEqual N/A assertTrue N/A self assertTrue N/A table N/A N/A current db fotest_table N/A xml N/A current xml N/A fo N/A N/A xml get_field_options table noopts N/A N/A assertTrue N/A isinstance fo N/A etree _Element N/A N/A assertEqual N/A fo tag select N/A N/A assertEqual N/A len fo 0 msg Options reported for field without options N/A testShowUIDs N/A N/A self N/A N/A N/A  Test options lookup with foreign key constraint including UIDs  N/A assertEqual N/A self assertEqual N/A assertTrue N/A self assertTrue N/A table N/A N/A current db fotest_table N/A xml N/A current xml N/A fo N/A N/A xml get_field_options table lookup show_uids True N/A N/A assertTrue N/A isinstance fo N/A etree _Element N/A N/A assertEqual N/A fo tag select N/A ATTRIBUTE N/A xml ATTRIBUTE N/A VALUE N/A ATTRIBUTE value N/A UID N/A xml UID N/A options N/A self records N/A has_empty False N/A N/A N/A self assertEqual N/A len fo N/A N/A len options 1 N/A opt fo N/A N/A N/A assertEqual N/A opt tag option N/A attr N/A opt attrib N/A N/A assertTrue N/A VALUE attr N/A value N/A attr N/A VALUE N/A N/A value N/A N/A has_empty True N/A N/A N/A self assertFalse N/A UID attr N/A N/A assertEqual N/A opt text N/A N/A N/A value N/A int value N/A N/A assertTrue N/A UID attr N/A N/A assertEqual N/A attr N/A UID N/A N/A options N/A value N/A uuid N/A N/A assertTrue N/A value options N/A N/A assertEqual N/A opt text N/A N/A options N/A value N/A name N/A N/A assertTrue has_empty msg Empty-option missing N/A testWithHierarchyInfo N/A N/A self N/A N/A N/A  Test options lookup with foreign key constraint with hierarchy info  N/A assertEqual N/A self assertEqual N/A assertTrue N/A self assertTrue N/A db N/A current db N/A s3db N/A current s3db N/A table N/A db fotest_lookup_table N/A represent N/A S3Represent lookup fotest_lookup_table N/A N/A N/A table parent requires N/A IS_EMPTY_OR N/A IS_ONE_OF db fotest_lookup_table.id represent N/A N/A N/A table parent requires represent N/A N/A N/A s3db configure fotest_lookup_table hierarchy parent N/A N/A N/A S3Hierarchy dirty fotest_lookup_table N/A options N/A dict N/A self records N/A child_node N/A name uuid parent option3 OPTION3 N/A N/A N/A options keys N/A 0 N/A child_id N/A N/A table insert child_node N/A N/A options N/A child_id child_node N/A xml N/A current xml N/A table N/A db fotest_table N/A fo N/A N/A xml get_field_options table lookup show_uids True hierarchy True N/A N/A assertTrue N/A isinstance fo N/A etree _Element N/A N/A assertEqual N/A fo tag select N/A ATTRIBUTE N/A xml ATTRIBUTE N/A VALUE N/A ATTRIBUTE value N/A PARENT N/A ATTRIBUTE parent N/A UID N/A xml UID N/A has_empty False N/A N/A N/A self assertEqual N/A len fo N/A N/A len options 1 N/A opt fo N/A N/A N/A assertEqual N/A opt tag option N/A attr N/A opt attrib N/A N/A assertTrue N/A VALUE attr N/A value N/A attr N/A VALUE N/A N/A value N/A N/A has_empty True N/A N/A N/A self assertFalse N/A UID attr N/A N/A assertEqual N/A opt text N/A N/A N/A value N/A int value N/A N/A assertTrue N/A UID attr N/A N/A assertEqual N/A attr N/A UID N/A N/A options N/A value N/A uuid N/A N/A assertTrue N/A value options N/A N/A assertEqual N/A opt text N/A N/A options N/A value N/A name N/A N/A N/A parent N/A options N/A value N/A N/A options N/A value N/A parent N/A N/A N/A assertTrue N/A PARENT attr N/A N/A assertEqual N/A attr N/A PARENT N/A str N/A N/A options N/A value N/A parent N/A N/A assertTrue has_empty msg Empty-option missing N/A testExportOptionsXML N/A N/A self N/A N/A N/A  Test Export Options (all options, XML)  N/A assertEqual N/A self assertEqual N/A assertTrue N/A self assertTrue N/A options N/A dict N/A self records N/A resource N/A N/A N/A current s3db resource fotest_table N/A result N/A N/A resource export_options fields N/A lookup N/A fo N/A N/A etree XML result N/A xml N/A current xml N/A ATTRIBUTE N/A xml ATTRIBUTE N/A VALUE N/A ATTRIBUTE value N/A UID N/A xml UID N/A has_empty False N/A N/A N/A self assertEqual N/A len fo N/A N/A len options 1 N/A opt fo N/A N/A N/A assertEqual N/A opt tag option N/A attr N/A opt attrib N/A N/A assertTrue N/A VALUE attr N/A value N/A attr N/A VALUE N/A N/A value N/A N/A has_empty True N/A N/A N/A self assertFalse N/A UID attr N/A N/A assertEqual N/A opt text None N/A N/A N/A value N/A int value N/A N/A assertTrue N/A value options N/A N/A assertEqual N/A opt text N/A N/A options N/A value N/A name N/A N/A assertTrue has_empty msg Empty-option missing N/A testExportOptionsXMLHierarchy N/A N/A self N/A N/A N/A  Test Export Options (all options, XML+hierarchy)  N/A assertEqual N/A self assertEqual N/A assertTrue N/A self assertTrue N/A db N/A current db N/A table N/A db fotest_lookup_table N/A represent N/A S3Represent lookup fotest_lookup_table N/A N/A N/A table parent requires N/A IS_EMPTY_OR N/A IS_ONE_OF db fotest_lookup_table.id represent N/A N/A N/A table parent requires represent N/A s3db N/A current s3db N/A N/A N/A s3db configure fotest_lookup_table hierarchy parent N/A N/A N/A S3Hierarchy dirty fotest_lookup_table N/A options N/A dict N/A self records N/A child_node N/A name uuid parent option3 OPTION3 N/A N/A N/A options keys N/A 0 N/A child_id N/A N/A table insert child_node N/A N/A options N/A child_id child_node N/A resource N/A N/A s3db resource fotest_table N/A result N/A N/A resource export_options fields N/A lookup hierarchy True N/A fo N/A N/A etree XML result N/A xml N/A current xml N/A ATTRIBUTE N/A xml ATTRIBUTE N/A VALUE N/A ATTRIBUTE value N/A PARENT N/A ATTRIBUTE parent N/A UID N/A xml UID N/A has_empty False N/A N/A N/A self assertEqual N/A len fo N/A N/A len options 1 N/A opt fo N/A N/A N/A assertEqual N/A opt tag option N/A attr N/A opt attrib N/A N/A assertTrue N/A VALUE attr N/A value N/A attr N/A VALUE N/A N/A value N/A N/A has_empty True N/A N/A N/A self assertFalse N/A UID attr N/A N/A assertEqual N/A opt text None N/A N/A N/A value N/A int value N/A N/A assertTrue N/A value options N/A N/A assertEqual N/A opt text N/A N/A options N/A value N/A name N/A N/A N/A parent N/A options N/A value N/A N/A options N/A value N/A parent N/A N/A N/A assertTrue N/A PARENT attr N/A N/A assertEqual N/A attr N/A PARENT N/A str N/A N/A options N/A value N/A parent N/A N/A assertTrue has_empty msg Empty-option missing N/A testExportOptionsAllOptsJSON N/A N/A self N/A N/A N/A  Test export options, JSON, all options  N/A assertEqual N/A self assertEqual N/A assertTrue N/A self assertTrue N/A options N/A dict N/A self records N/A resource N/A N/A N/A current s3db resource fotest_table N/A result N/A N/A resource export_options fields N/A lookup as_json True N/A fo N/A N/A json loads result N/A has_empty False N/A N/A assertTrue N/A isinstance fo dict N/A N/A assertTrue N/A option fo N/A N/A assertTrue N/A isinstance N/A fo N/A option list N/A N/A assertEqual N/A len N/A fo N/A option N/A N/A len options 1 N/A opt N/A fo N/A option N/A N/A value N/A opt N/A @value N/A N/A value N/A N/A has_empty True N/A N/A N/A self assertFalse N/A $ opt N/A N/A N/A value N/A int value N/A N/A assertTrue N/A value options N/A N/A assertEqual N/A opt N/A $ N/A N/A options N/A value N/A name N/A N/A assertTrue has_empty msg Empty-option missing N/A testExportOptionsAllOptsJSONHierarchy N/A N/A self N/A N/A N/A  Test export options, JSON, all options+hierarchy  N/A assertEqual N/A self assertEqual N/A assertTrue N/A self assertTrue N/A db N/A current db N/A table N/A db fotest_lookup_table N/A represent N/A S3Represent lookup fotest_lookup_table N/A N/A N/A table parent requires N/A IS_EMPTY_OR N/A IS_ONE_OF db fotest_lookup_table.id represent N/A N/A N/A table parent requires represent N/A s3db N/A current s3db N/A N/A N/A s3db configure fotest_lookup_table hierarchy parent N/A N/A N/A S3Hierarchy dirty fotest_lookup_table N/A options N/A dict N/A self records N/A child_node N/A name uuid parent option3 OPTION3 N/A N/A N/A options keys N/A 0 N/A child_id N/A N/A table insert child_node N/A N/A options N/A child_id child_node N/A resource N/A N/A s3db resource fotest_table N/A result N/A N/A resource export_options fields N/A lookup hierarchy True as_json True N/A fo N/A N/A json loads result N/A has_empty False N/A N/A assertTrue N/A isinstance fo dict N/A N/A assertTrue N/A option fo N/A N/A assertTrue N/A isinstance N/A fo N/A option list N/A N/A assertEqual N/A len N/A fo N/A option N/A N/A len options 1 N/A opt N/A fo N/A option N/A N/A value N/A opt N/A @value N/A N/A value N/A N/A has_empty True N/A N/A N/A self assertFalse N/A $ opt N/A N/A N/A value N/A int value N/A N/A assertTrue N/A value options N/A N/A assertEqual N/A opt N/A $ N/A N/A options N/A value N/A name N/A N/A N/A parent N/A options N/A value N/A N/A options N/A value N/A parent N/A N/A N/A assertTrue N/A @parent opt N/A N/A assertEqual N/A opt N/A @parent N/A str N/A N/A options N/A value N/A parent N/A N/A assertTrue has_empty msg Empty-option missing N/A testExportOptionsLastOptJSON N/A N/A self N/A N/A N/A  Test export of last option, JSON  N/A assertEqual N/A self assertEqual N/A assertTrue N/A self assertTrue N/A options N/A dict N/A self records N/A db N/A current db N/A table N/A db fotest_lookup_table N/A last N/A N/A N/A N/A N/A db N/A N/A table id 0 select limitby N/A 0 1 orderby N/A N/A table id first N/A N/A N/A self assertNotEqual last None N/A resource N/A N/A N/A current s3db resource fotest_table N/A result N/A N/A resource export_options fields N/A lookup only_last True as_json True N/A fo N/A N/A json loads result N/A N/A assertTrue N/A isinstance fo dict N/A N/A assertTrue N/A option fo N/A N/A assertTrue N/A isinstance N/A fo N/A option list N/A N/A assertEqual N/A len N/A fo N/A option 1 N/A opt N/A N/A fo N/A option N/A 0 N/A value N/A opt N/A @value N/A N/A assertEqual N/A N/A options N/A value N/A uuid N/A last uuid N/A N/A assertEqual N/A opt N/A $ N/A N/A options N/A value N/A name N/A testExportOptionsLastOptJSONHierarchy N/A N/A self N/A N/A N/A assertEqual N/A self assertEqual N/A assertTrue N/A self assertTrue N/A db N/A current db N/A s3db N/A current s3db N/A table N/A db fotest_lookup_table N/A represent N/A S3Represent lookup fotest_lookup_table N/A N/A N/A table parent requires N/A IS_EMPTY_OR N/A IS_ONE_OF db fotest_lookup_table.id represent N/A N/A N/A table parent requires represent N/A N/A N/A s3db configure fotest_lookup_table hierarchy parent N/A N/A N/A S3Hierarchy dirty fotest_lookup_table N/A options N/A dict N/A self records N/A child_node N/A name uuid parent option3 OPTION3 N/A N/A N/A options keys N/A 0 N/A child_id N/A N/A table insert child_node N/A N/A options N/A child_id child_node N/A table N/A db fotest_lookup_table N/A last N/A N/A N/A N/A N/A db N/A N/A table id 0 select limitby N/A 0 1 orderby N/A N/A table id first N/A N/A N/A self assertNotEqual last None N/A resource N/A N/A s3db resource fotest_table N/A result N/A N/A resource export_options fields N/A lookup only_last True hierarchy True as_json True N/A fo N/A N/A json loads result N/A N/A assertTrue N/A isinstance fo dict N/A N/A assertTrue N/A option fo N/A N/A assertTrue N/A isinstance N/A fo N/A option list N/A N/A assertEqual N/A len N/A fo N/A option 1 N/A opt N/A N/A fo N/A option N/A 0 N/A value N/A opt N/A @value N/A N/A assertEqual N/A N/A options N/A value N/A uuid N/A last uuid N/A N/A assertEqual N/A opt N/A $ N/A N/A options N/A value N/A name N/A N/A assertTrue N/A @parent opt N/A N/A assertEqual N/A opt N/A @parent N/A str N/A N/A options N/A value N/A parent N/A N/A S3JSONParsingTests N/A N/A unittest TestCase N/A N/A  Tests for S3JSON Parsing  testValueParsing N/A N/A self N/A N/A N/A  Test handling of S3JSON @value attribute  N/A assertEqual N/A self assertEqual N/A json_str {
"$_test_resource": [
    {
        "valuelist": {
            "@value": ["value1", "value2"]
        },
        "jsonlist": {
            "@value": "[\"value1\", \"value2\"]"
        },
        "valuestring": {
            "@value": "value1"
        },
        "valueinteger": {
            "@value": 2
        }
    }
]} N/A tree N/A N/A N/A current xml json2tree N/A StringIO json_str N/A root N/A N/A tree getroot N/A value_list N/A N/A N/A root findall resource/data[@field="valuelist"] N/A 0 N/A v N/A N/A value_list get value N/A N/A assertEqual v ["value1", "value2"] N/A N/A assertEqual N/A N/A json loads v N/A value1 value2 N/A value_list N/A N/A N/A root findall resource/data[@field="jsonlist"] N/A 0 N/A v N/A N/A value_list get value N/A N/A assertEqual v ["value1", "value2"] N/A N/A assertEqual N/A N/A json loads v N/A value1 value2 N/A value_list N/A N/A N/A root findall resource/data[@field="valuestring"] N/A 0 N/A v N/A N/A value_list get value N/A N/A assertEqual v value1 N/A value_list N/A N/A N/A root findall resource/data[@field="valueinteger"] N/A 0 N/A v N/A N/A value_list get value N/A N/A assertEqual v 2 N/A N/A run_suite N/A N/A N/A test_classes N/A N/A  Run the test suite  N/A loader N/A N/A unittest TestLoader N/A suite N/A N/A unittest TestSuite N/A test_class test_classes N/A N/A tests N/A N/A loader loadTestsFromTestCase test_class N/A N/A N/A suite addTests tests N/A N/A suite None N/A N/A N/A N/A N/A N/A unittest TextTestRunner verbosity 2 run suite N/A N/A N/A N/A __name__ __main__ N/A N/A N/A run_suite TreeBuilderTests JSONMessageTests XMLFormatTests GetFieldOptionsTests S3JSONParsingTests