Module Import alias Import alias ImportFrom alias ImportFrom alias identifier Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad NameLoad attr ListLoad Num keyword Call AttributeLoad NameLoad attr Assert CompareIn Str Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad NameLoad attr ListLoad Num keyword Call AttributeLoad NameLoad attr Assert CompareNotIn Str Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad NameLoad attr ListLoad Num keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assert AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam NameParam defaults NameLoad Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults NameLoad Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr ListLoad Num AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assert AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam NameParam defaults NameLoad Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults NameLoad Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str AttributeLoad NameLoad attr ListLoad Num AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assert AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam NameParam defaults NameLoad Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults NameLoad Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Num Assert UnaryOpNot Call AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str BinOpAdd AttributeLoad NameLoad attr Num Assert UnaryOpNot Call AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assert CompareEq Call NameLoad NameLoad NameLoad NameLoad Assert AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assert CompareEq Call NameLoad NameLoad NameLoad NameLoad Assert CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num attr Expr Call AttributeLoad Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assert CompareIn NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad Num With Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str NameStore body Expr Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Assert Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assert AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad Num With Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str NameStore body Expr Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Assert Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Dict Str Str ListLoad Num Num ListLoad Num Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str For NameStore TupleLoad Str Str Str body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword BinOpMult Str Num Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str For NameStore TupleLoad Str Str Str body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword BinOpMult Str Num Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword BinOpMult Str Num Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad Call NameLoad Str keyword ListLoad Str Call NameLoad Str keyword ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr attr Dict Str Str Str NameLoad Assert CompareEq AttributeLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr attr Dict Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str NameLoad Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad Call NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str NameLoad Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Assert Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Str Index Num Assign NameStore AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad ListLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assert CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert UnaryOpNot AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Assert CompareEq AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword ListLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str keyword Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Assert Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad SubscriptLoad NameLoad Index Num attr Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr SubscriptLoad NameLoad Index Num Assert CompareIs AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad Call NameLoad keyword Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad keyword Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Dict Str Str Str Str Str Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr CompareNotIn NameLoad ListLoad Str Str body Assert CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr CompareNotIn NameLoad ListLoad Str Str body Assert CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad SubscriptLoad NameLoad Index NameLoad Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assert Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str Assert CompareEq AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assert CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assert CompareEq Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assert CompareEq Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str keyword NameLoad ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assert CompareEq Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assert Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assert Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Assert CompareEq AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assert UnaryOpNot AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assert Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assert Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assert Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Assert CompareEq AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assert UnaryOpNot AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num Assert CompareEq AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Dict Str Str keyword AttributeLoad NameLoad attr Assert Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num Assign AttributeStore NameLoad attr Call NameLoad Dict Str Str keyword AttributeLoad NameLoad attr Assert Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Dict Str Str keyword AttributeLoad NameLoad attr Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A json N/A os django.conf settings django.core.files.storage default_storage storage N/A mock N/A pytest PIL Image olympia amo paypal olympia.amo.tests TestCase olympia.amo.tests.test_helpers get_image_path olympia.amo.urlresolvers reverse olympia.amo.helpers user_media_path olympia.applications.models AppVersion olympia.addons.forms EditThemeForm EditThemeOwnerForm ThemeForm olympia.addons.models Addon Category Charity Persona olympia.devhub forms olympia.editors.models RereviewQueueTheme olympia.files.helpers copyfileobj olympia.files.models FileUpload olympia.tags.models Tag olympia.users.models UserProfile olympia.versions.models ApplicationsVersions License Version TestNewAddonForm N/A TestCase N/A test_only_valid_uploads N/A N/A self N/A N/A N/A upload N/A N/A N/A FileUpload objects create valid False N/A form N/A N/A forms NewAddonForm N/A upload supported_platforms N/A upload uuid N/A 1 request N/A N/A mock Mock N/A N/A There was an error with your upload. Please try again. N/A N/A N/A form errors get __all__ N/A form errors N/A N/A upload validation {"errors": 0} N/A N/A N/A upload save N/A form N/A N/A forms NewAddonForm N/A upload supported_platforms N/A upload uuid N/A 1 request N/A N/A mock Mock N/A N/A There was an error with your upload. Please try again. N/A N/A N/A form errors get __all__ N/A form errors N/A test_check_xpi_called N/A N/A self mock_check_xpi_info mock_parse N/A N/A N/A Make sure the check_xpi_info helper is called.

        There's some important checks made in check_xpi_info, if we ever
        refactor the form to not call it anymore, we need to make sure those
        checks are run at some point.
         N/A N/A mock_parse return_value None N/A N/A mock_check_xpi_info return_value N/A name type foo 2 N/A upload N/A N/A N/A FileUpload objects create valid True N/A form N/A N/A forms NewAddonForm N/A upload supported_platforms N/A upload uuid N/A 1 request N/A N/A mock Mock N/A N/A N/A form clean N/A N/A mock_check_xpi_info called N/A N/A N/A mock patch olympia.files.utils.Extractor.parse N/A N/A mock patch olympia.files.utils.extract_xpi N/A N/A N/A xpi path N/A None N/A N/A mock patch olympia.files.utils.get_file N/A N/A N/A xpi N/A None N/A N/A mock patch olympia.files.utils.check_xpi_info N/A TestNewVersionForm N/A TestCase N/A test_check_xpi_called N/A N/A self mock_check_xpi_info mock_parse N/A N/A N/A Make sure the check_xpi_info helper is called.

        There's some important checks made in check_xpi_info, if we ever
        refactor the form to not call it anymore, we need to make sure those
        checks are run at some point.
         N/A N/A mock_parse return_value None N/A N/A mock_check_xpi_info return_value N/A name type foo 2 N/A upload N/A N/A N/A FileUpload objects create valid True N/A addon N/A N/A N/A Addon objects create N/A form N/A N/A forms NewVersionForm N/A upload supported_platforms nomination_type N/A upload uuid N/A 1 N/A amo STATUS_NOMINATED addon addon request N/A N/A mock Mock N/A N/A N/A form clean N/A N/A mock_check_xpi_info called N/A N/A N/A mock patch olympia.files.utils.Extractor.parse N/A N/A mock patch olympia.files.utils.extract_xpi N/A N/A N/A xpi path N/A None N/A N/A mock patch olympia.files.utils.get_file N/A N/A N/A xpi N/A None N/A N/A mock patch olympia.files.utils.check_xpi_info N/A TestNewFileForm N/A TestCase N/A test_check_xpi_called N/A N/A self mock_check_xpi_info mock_parse N/A N/A N/A Make sure the check_xpi_info helper is called.

        There's some important checks made in check_xpi_info, if we ever
        refactor the form to not call it anymore, we need to make sure those
        checks are run at some point.
         N/A N/A mock_parse return_value None N/A N/A mock_check_xpi_info return_value N/A name type foo 2 N/A upload N/A N/A N/A FileUpload objects create valid True N/A addon N/A N/A N/A Addon objects create N/A version N/A N/A N/A Version objects create addon addon N/A N/A version compatible_platforms N/A N/A mock Mock N/A N/A N/A version compatible_platforms return_value N/A amo SUPPORTED_PLATFORMS N/A form N/A N/A forms NewFileForm N/A upload supported_platforms nomination_type platform N/A upload uuid N/A 1 N/A amo STATUS_NOMINATED 1 addon addon version version request N/A N/A mock Mock N/A N/A N/A form clean N/A N/A mock_check_xpi_info called N/A N/A N/A mock patch olympia.files.utils.Extractor.parse N/A N/A mock patch olympia.files.utils.extract_xpi N/A N/A N/A xpi path N/A None N/A N/A mock patch olympia.files.utils.get_file N/A N/A N/A xpi N/A None N/A N/A mock patch olympia.files.utils.check_xpi_info N/A TestContribForm N/A TestCase N/A test_neg_suggested_amount N/A N/A self N/A N/A N/A form N/A N/A forms ContribForm N/A suggested_amount -10 N/A N/A N/A N/A form is_valid N/A N/A N/A N/A N/A form errors N/A suggested_amount N/A 0 Please enter a suggested amount greater than 0. N/A test_max_suggested_amount N/A N/A self N/A N/A N/A form N/A N/A forms ContribForm N/A suggested_amount N/A N/A settings MAX_CONTRIBUTION 10 N/A N/A N/A N/A form is_valid N/A N/A N/A N/A N/A form errors N/A suggested_amount N/A 0 N/A Please enter a suggested amount less than $%s. N/A settings MAX_CONTRIBUTION N/A N/A TestCharityForm N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestCharityForm self setUp N/A N/A self paypal_mock N/A N/A mock Mock N/A N/A N/A self paypal_mock return_value N/A True None N/A N/A paypal check_paypal_id N/A self paypal_mock N/A test_always_new N/A N/A self N/A N/A N/A params N/A dict name name url http://url.com/ paypal paypal N/A charity N/A N/A N/A N/A forms CharityForm params save N/A N/A k v N/A N/A params items N/A N/A N/A N/A getattr charity k v N/A N/A charity id N/A instance N/A N/A N/A Charity objects get id N/A charity id N/A N/A params N/A name new N/A new_charity N/A N/A N/A N/A forms CharityForm params instance instance save N/A N/A k v N/A N/A params items N/A N/A N/A N/A getattr new_charity k v N/A N/A N/A new_charity id N/A charity id N/A N/A TestCompatForm N/A TestCase N/A N/A fixtures N/A base/addon_3615 test_mozilla_app N/A N/A self N/A N/A N/A moz N/A amo MOZILLA N/A appver N/A N/A N/A AppVersion objects create application N/A moz id N/A v N/A N/A N/A N/A Addon objects get id 3615 current_version N/A N/A N/A N/A ApplicationsVersions application N/A moz id version v min appver max appver save N/A fs N/A N/A forms CompatFormSet None queryset N/A N/A N/A v apps all N/A apps N/A N/A f app N/A f N/A fs forms N/A N/A moz apps N/A N/A TestPreviewForm N/A TestCase N/A N/A fixtures N/A base/addon_3615 setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestPreviewForm self setUp N/A N/A self dest N/A N/A N/A os path join N/A settings TMP_PATH preview N/A N/A N/A N/A N/A os path exists N/A self dest N/A N/A N/A N/A os makedirs N/A self dest N/A test_preview_modified N/A N/A self update_mock N/A N/A N/A addon N/A N/A N/A Addon objects get pk 3615 N/A name transparent.png N/A form N/A N/A forms PreviewForm N/A caption upload_hash position test name 1 N/A N/A N/A storage open N/A N/A N/A os path join N/A self dest name w f N/A N/A N/A copyfileobj N/A open N/A get_image_path name f N/A N/A N/A form is_valid N/A N/A N/A form save addon N/A N/A update_mock called N/A N/A N/A mock patch olympia.amo.models.ModelBase.update test_preview_size N/A N/A self N/A N/A N/A addon N/A N/A N/A Addon objects get pk 3615 N/A name non-animated.gif N/A form N/A N/A forms PreviewForm N/A caption upload_hash position test name 1 N/A N/A N/A storage open N/A N/A N/A os path join N/A self dest name w f N/A N/A N/A copyfileobj N/A open N/A get_image_path name f N/A N/A N/A form is_valid N/A N/A N/A form save addon N/A N/A N/A N/A N/A N/A N/A addon previews all N/A 0 sizes N/A image thumbnail N/A 250 297 N/A 126 150 N/A N/A TestThemeForm N/A TestCase N/A N/A fixtures N/A base/user_2519 setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestThemeForm self setUp N/A N/A N/A self populate N/A N/A self request N/A N/A mock Mock N/A N/A N/A self request user N/A N/A mock Mock N/A N/A N/A N/A self request user groups_list N/A N/A N/A N/A N/A N/A self request user is_authenticated return_value True N/A populate N/A N/A self N/A N/A N/A N/A self cat N/A N/A N/A Category objects create application N/A N/A amo FIREFOX id type N/A amo ADDON_PERSONA name xxxx N/A N/A N/A N/A License objects create id N/A N/A amo LICENSE_CC_BY id N/A get_dict N/A N/A self N/A kw N/A N/A data N/A name slug category accentcolor textcolor description tags license agreed header_hash footer_hash new name special-slug N/A N/A self cat id #003366 #C0FFEE new description tag1, tag2, tag3 N/A N/A amo LICENSE_CC_BY id True b4ll1n 5w4g N/A N/A N/A data update kw N/A data N/A post N/A N/A self N/A kw N/A N/A N/A self form N/A ThemeForm N/A N/A self get_dict kw request N/A self request N/A N/A self form N/A test_name_unique N/A N/A self N/A N/A N/A N/A N/A N/A Addon objects create type N/A amo ADDON_PERSONA name harry-potter N/A name N/A Harry-Potter   harry-potter   harry-potter N/A N/A N/A N/A self post name name N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A name N/A This name is already in use. Please choose another. N/A test_name_required N/A N/A self N/A N/A N/A N/A N/A self post name N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A name N/A This field is required. N/A test_name_length N/A N/A self N/A N/A N/A N/A N/A self post name N/A a 51 N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A name N/A Ensure this value has at most 50 characters (it has 51). N/A test_slug_unique N/A N/A self N/A N/A N/A N/A N/A N/A Addon objects create type N/A amo ADDON_PERSONA slug harry-potter N/A slug N/A Harry-Potter   harry-potter   harry-potter N/A N/A N/A N/A self post slug slug N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A slug N/A This slug is already in use. Please choose another. N/A test_slug_required N/A N/A self N/A N/A N/A N/A N/A self post slug N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A slug N/A This field is required. N/A test_slug_length N/A N/A self N/A N/A N/A N/A N/A self post slug N/A a 31 N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A slug N/A Ensure this value has at most 30 characters (it has 31). N/A test_description_optional N/A N/A self N/A N/A N/A N/A N/A self post description N/A N/A N/A N/A self form is_valid N/A test_description_length N/A N/A self N/A N/A N/A N/A N/A self post description N/A a 501 N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A description N/A Ensure this value has at most 500 characters (it has 501). N/A test_categories_required N/A N/A self N/A N/A N/A N/A N/A self post category N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A category N/A This field is required. N/A test_license_required N/A N/A self N/A N/A N/A N/A N/A self post license N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A license N/A A license must be selected. N/A test_header_hash_required N/A N/A self N/A N/A N/A N/A N/A self post header_hash N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A header_hash N/A This field is required. N/A test_footer_hash_optional N/A N/A self N/A N/A N/A N/A N/A self post footer_hash N/A N/A N/A N/A self form is_valid N/A test_accentcolor_optional N/A N/A self N/A N/A N/A N/A N/A self post accentcolor N/A N/A N/A N/A self form is_valid N/A test_accentcolor_invalid N/A N/A self N/A N/A N/A N/A N/A self post accentcolor #BALLIN N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A accentcolor N/A This must be a valid hex color code, such as #000000. N/A test_textcolor_optional N/A N/A self N/A N/A N/A N/A N/A self post textcolor N/A N/A N/A N/A self form is_valid N/A N/A self form errors N/A test_textcolor_invalid N/A N/A self N/A N/A N/A N/A N/A self post textcolor #BALLIN N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A textcolor N/A This must be a valid hex color code, such as #000000. N/A get_img_urls N/A N/A self N/A N/A N/A N/A N/A reverse devhub.personas.upload_persona args N/A persona_header N/A reverse devhub.personas.upload_persona args N/A persona_footer N/A test_img_attrs N/A N/A self N/A N/A N/A N/A header_url footer_url N/A N/A self get_img_urls N/A N/A N/A self post N/A N/A N/A N/A N/A N/A N/A self form fields N/A header widget attrs N/A data-allowed-types data-upload-url image/jpeg|image/png header_url N/A N/A N/A N/A N/A N/A N/A self form fields N/A footer widget attrs N/A data-allowed-types data-upload-url image/jpeg|image/png footer_url N/A test_success N/A N/A self save_persona_image_mock create_persona_preview_images_mock make_checksum_mock N/A N/A N/A N/A make_checksum_mock return_value hashyourselfbeforeyoucrashyourself N/A N/A N/A self request user N/A N/A N/A UserProfile objects get pk 2519 N/A data N/A N/A self get_dict N/A N/A header_url footer_url N/A N/A self get_img_urls N/A img N/A open N/A get_image_path persona-header.jpg rb N/A r_ajax N/A N/A N/A self client post header_url N/A upload_image img N/A N/A N/A data update header_hash N/A N/A N/A json loads N/A r_ajax content N/A upload_hash N/A img N/A open N/A get_image_path persona-footer.jpg rb N/A r_ajax N/A N/A N/A self client post footer_url N/A upload_image img N/A N/A N/A data update footer_hash N/A N/A N/A json loads N/A r_ajax content N/A upload_hash N/A N/A N/A self post N/A N/A N/A N/A self form is_valid N/A N/A self form errors N/A N/A N/A N/A self form save N/A addon N/A N/A N/A N/A N/A N/A Addon objects filter type N/A amo ADDON_PERSONA order_by -id N/A 0 N/A persona N/A addon persona N/A N/A N/A unicode N/A addon name N/A data N/A name N/A N/A N/A addon slug N/A data N/A slug N/A N/A N/A self assertSetEqual N/A N/A N/A addon categories values_list id flat True N/A N/A N/A self cat id N/A N/A N/A self assertSetEqual N/A N/A N/A addon tags values_list tag_text flat True N/A N/A N/A data N/A tags split ,  N/A N/A N/A persona persona_id 0 N/A N/A N/A persona license N/A data N/A license N/A N/A N/A persona accentcolor N/A N/A N/A data N/A accentcolor lstrip # N/A N/A N/A persona textcolor N/A N/A N/A data N/A textcolor lstrip # N/A N/A N/A persona author N/A N/A N/A self request user username N/A N/A N/A persona display_username N/A N/A N/A self request user name N/A N/A N/A persona dupe_persona N/A v N/A N/A N/A addon versions all N/A N/A N/A len v 1 N/A N/A N/A N/A v N/A 0 version 0 N/A dst N/A N/A N/A os path join N/A user_media_path addons N/A str N/A addon id N/A header_src N/A N/A N/A os path join N/A settings TMP_PATH persona_header b4ll1n N/A footer_src N/A N/A N/A os path join N/A settings TMP_PATH persona_footer 5w4g N/A N/A N/A save_persona_image_mock mock_calls N/A N/A N/A mock call src header_src full_dst N/A N/A N/A os path join dst header.png N/A N/A mock call src footer_src full_dst N/A N/A N/A os path join dst footer.png N/A N/A N/A create_persona_preview_images_mock assert_called_with src header_src full_dst N/A N/A N/A N/A os path join dst preview.png N/A N/A N/A os path join dst icon.png set_modified_on N/A addon N/A N/A N/A mock patch olympia.addons.tasks.make_checksum N/A N/A mock patch olympia.addons.tasks.create_persona_preview_images N/A N/A mock patch olympia.addons.tasks.save_persona_image N/A N/A N/A pytest mark skipif N/A N/A hasattr N/A Image core jpeg_encoder reason Not having a jpeg encoder makes test sad test_dupe_persona N/A N/A self make_checksum_mock mock1 mock2 N/A N/A N/A 
        Submitting persona with checksum already in db should be marked
        duplicate.
         N/A N/A make_checksum_mock return_value cornhash N/A N/A N/A self request user N/A N/A N/A UserProfile objects get pk 2519 N/A N/A N/A self post N/A N/A N/A N/A self form is_valid N/A N/A self form errors N/A N/A N/A N/A self form save N/A N/A N/A self post name whatsinaname slug metalslug N/A N/A N/A N/A self form is_valid N/A N/A self form errors N/A N/A N/A N/A self form save N/A personas N/A N/A N/A Persona objects order_by addon__name N/A N/A N/A N/A personas N/A 0 checksum N/A N/A personas N/A 1 checksum N/A N/A N/A N/A personas N/A 1 dupe_persona N/A personas N/A 0 N/A N/A N/A N/A personas N/A 0 dupe_persona None N/A N/A N/A mock patch olympia.addons.tasks.create_persona_preview_images N/A N/A mock patch olympia.addons.tasks.save_persona_image N/A N/A mock patch olympia.addons.tasks.make_checksum N/A TestEditThemeForm N/A TestCase N/A N/A fixtures N/A base/user_2519 setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestEditThemeForm self setUp N/A N/A N/A self populate N/A N/A self request N/A N/A mock Mock N/A N/A N/A self request user N/A N/A mock Mock N/A N/A N/A N/A self request user groups_list N/A N/A N/A N/A N/A self request user username swagyismymiddlename N/A N/A N/A N/A self request user name Sir Swag A Lot N/A N/A N/A N/A N/A self request user is_authenticated return_value True N/A populate N/A N/A self N/A N/A N/A N/A self instance N/A N/A N/A Addon objects create type N/A amo ADDON_PERSONA status N/A amo STATUS_PUBLIC slug swag-overload name Bands Make Me Dance description tha description N/A N/A self cat N/A N/A N/A Category objects create type N/A amo ADDON_PERSONA name xxxx N/A N/A N/A N/A N/A self instance addoncategory_set create category N/A self cat N/A N/A self license N/A N/A amo LICENSE_CC_BY id N/A N/A self theme N/A N/A N/A Persona objects create persona_id 0 addon_id N/A N/A self instance id license N/A self license accentcolor C0FFEE textcolor EFFFFF N/A N/A N/A N/A Tag tag_text sw save_tag N/A self instance N/A N/A N/A N/A Tag tag_text ag save_tag N/A self instance N/A get_dict N/A N/A self N/A kw N/A N/A data N/A accentcolor category license slug tags textcolor name_en-us description_en-us #C0FFEE N/A N/A self cat id N/A self license N/A N/A self instance slug ag, sw #EFFFFF N/A unicode N/A N/A self instance name N/A unicode N/A N/A self instance description N/A N/A N/A data update kw N/A data N/A test_initial N/A N/A self N/A N/A N/A N/A self form N/A EditThemeForm None request N/A self request instance N/A self instance N/A eq_data N/A N/A self get_dict N/A k N/A k N/A k N/A N/A N/A N/A self form initial keys N/A k N/A name description N/A N/A N/A N/A N/A N/A self form initial N/A k N/A eq_data N/A k N/A save_success N/A N/A self N/A N/A N/A other_cat N/A N/A N/A Category objects create type N/A amo ADDON_PERSONA N/A N/A self data N/A accentcolor category license slug tags textcolor name_en-us description_en-us #EFF0FF N/A other_cat id N/A N/A amo LICENSE_CC_BY_NC_SA id swag-lifestyle ag #CACACA All Day I Dream About Swag ADIDAS N/A N/A self form N/A EditThemeForm N/A self data request N/A self request instance N/A self instance N/A eq_data N/A N/A self get_dict N/A k N/A k N/A k N/A N/A N/A N/A self form initial keys N/A k N/A name description N/A N/A N/A N/A N/A N/A self form initial N/A k N/A eq_data N/A k N/A N/A N/A N/A self form data N/A self data N/A N/A N/A N/A self form is_valid N/A N/A self form errors N/A N/A N/A N/A self form save N/A test_success N/A N/A self N/A N/A N/A N/A N/A self save_success N/A N/A self instance N/A N/A N/A self instance reload N/A N/A N/A unicode N/A N/A N/A self instance persona accentcolor N/A N/A N/A N/A self data N/A accentcolor lstrip # N/A N/A N/A N/A N/A N/A N/A N/A self instance categories all N/A 0 id N/A N/A self data N/A category N/A N/A N/A N/A N/A self instance persona license N/A N/A self data N/A license N/A N/A N/A unicode N/A N/A self instance name N/A N/A self data N/A name_en-us N/A N/A N/A unicode N/A N/A self instance description N/A N/A self data N/A description_en-us N/A N/A N/A self assertSetEqual N/A N/A N/A N/A self instance tags values_list tag_text flat True N/A N/A N/A self data N/A tags N/A N/A N/A unicode N/A N/A N/A self instance persona textcolor N/A N/A N/A N/A self data N/A textcolor lstrip # N/A test_success_twice N/A N/A self N/A N/A N/A Form should be just fine when POSTing twice. N/A N/A N/A self save_success N/A N/A N/A N/A self form save N/A test_name_unique N/A N/A self N/A N/A N/A data N/A N/A self get_dict N/A name_en-us Bands Make You Dance N/A N/A N/A N/A Addon objects create type N/A amo ADDON_PERSONA status N/A amo STATUS_PUBLIC name N/A data N/A name_en-us N/A N/A self form N/A EditThemeForm data request N/A self request instance N/A self instance N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form errors N/A name N/A N/A en-us This name is already in use. Please choose another. N/A test_localize_name_description N/A N/A self N/A N/A N/A data N/A N/A self get_dict name_de name_de description_de description_de N/A N/A self form N/A EditThemeForm data request N/A self request instance N/A self instance N/A N/A N/A N/A self form is_valid N/A N/A self form errors N/A N/A N/A N/A self form save N/A test_reupload N/A N/A self save_persona_image_mock create_persona_preview_images_mock make_checksum_mock N/A N/A N/A N/A make_checksum_mock return_value checksumbeforeyouwrecksome N/A data N/A N/A self get_dict header_hash y0l0 footer_hash abab N/A N/A self form N/A EditThemeForm data request N/A self request instance N/A self instance N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form save N/A dst N/A N/A N/A os path join N/A user_media_path addons N/A str N/A N/A self instance id N/A header_src N/A N/A N/A os path join N/A settings TMP_PATH persona_header y0l0 N/A footer_src N/A N/A N/A os path join N/A settings TMP_PATH persona_footer abab N/A N/A N/A save_persona_image_mock mock_calls N/A N/A N/A mock call src header_src full_dst N/A N/A N/A os path join dst pending_header.png N/A N/A mock call src footer_src full_dst N/A N/A N/A os path join dst pending_footer.png N/A rqt N/A N/A N/A RereviewQueueTheme objects filter theme N/A N/A self instance persona N/A N/A N/A N/A rqt count 1 N/A N/A N/A N/A rqt N/A 0 header pending_header.png N/A N/A N/A N/A rqt N/A 0 footer pending_footer.png N/A N/A N/A N/A rqt N/A 0 dupe_persona N/A N/A N/A mock patch olympia.addons.tasks.make_checksum N/A N/A mock patch olympia.addons.tasks.create_persona_preview_images N/A N/A mock patch olympia.addons.tasks.save_persona_image test_reupload_duplicate N/A N/A self make_checksum_mock N/A N/A N/A N/A make_checksum_mock return_value checksumbeforeyouwrecksome N/A theme N/A N/A N/A amo tests addon_factory type N/A amo ADDON_PERSONA N/A N/A N/A theme persona checksum checksumbeforeyouwrecksome N/A N/A N/A N/A theme persona save N/A data N/A N/A self get_dict header_hash head footer_hash foot N/A N/A self form N/A EditThemeForm data request N/A self request instance N/A self instance N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form save N/A rqt N/A N/A N/A RereviewQueueTheme objects get theme N/A N/A self instance persona N/A N/A N/A rqt dupe_persona N/A theme persona N/A N/A N/A mock patch olympia.addons.tasks.create_persona_preview_images new N/A mock Mock N/A N/A mock patch olympia.addons.tasks.save_persona_image new N/A mock Mock N/A N/A mock patch olympia.addons.tasks.make_checksum test_reupload_legacy_header_only N/A N/A self N/A N/A N/A 
        STR the bug this test fixes:

        - Reupload a legacy theme (/w footer == leg.png) legacy, header only.
        - The header would get saved as 'pending_header.png'.
        - The footer would get saved as 'footer.png'.
        - On approving, it would see 'footer.png' !== 'leg.png'
        - It run move_stored_file('footer.png', 'leg.png').
        - But footer.png does not exist. BAM BUG.
         N/A N/A N/A self theme header Legacy-header3H.png N/A N/A N/A self theme footer Legacy-footer3H-Copy.jpg N/A N/A N/A N/A self theme save N/A data N/A N/A self get_dict header_hash arthro N/A N/A self form N/A EditThemeForm data request N/A self request instance N/A self instance N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form save N/A rqt N/A N/A N/A RereviewQueueTheme objects get N/A N/A N/A rqt header pending_header.png N/A N/A N/A rqt footer Legacy-footer3H-Copy.jpg N/A N/A N/A mock patch olympia.addons.tasks.make_checksum new N/A mock Mock N/A N/A mock patch olympia.addons.tasks.create_persona_preview_images new N/A mock Mock N/A N/A mock patch olympia.addons.tasks.save_persona_image new N/A mock Mock test_reupload_no_footer N/A N/A self save_persona_image_mock create_persona_preview_images_mock make_checksum_mock N/A N/A N/A N/A make_checksum_mock return_value checksumbeforeyouwrecksome N/A data N/A N/A self get_dict header_hash y0l0 footer_hash N/A N/A self form N/A EditThemeForm data request N/A self request instance N/A self instance N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self form save N/A dst N/A N/A N/A os path join N/A user_media_path addons N/A str N/A N/A self instance id N/A header_src N/A N/A N/A os path join N/A settings TMP_PATH persona_header y0l0 N/A N/A N/A save_persona_image_mock mock_calls N/A N/A N/A mock call src header_src full_dst N/A N/A N/A os path join dst pending_header.png N/A rqt N/A N/A N/A RereviewQueueTheme objects filter theme N/A N/A self instance persona N/A N/A N/A N/A rqt count 1 N/A N/A N/A N/A rqt N/A 0 header pending_header.png N/A N/A N/A N/A rqt N/A 0 footer N/A N/A N/A N/A rqt N/A 0 dupe_persona N/A N/A N/A mock patch olympia.addons.tasks.make_checksum N/A N/A mock patch olympia.addons.tasks.create_persona_preview_images N/A N/A mock patch olympia.addons.tasks.save_persona_image N/A TestEditThemeOwnerForm N/A TestCase N/A N/A fixtures N/A base/users setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestEditThemeOwnerForm self setUp N/A N/A self instance N/A N/A N/A Addon objects create type N/A amo ADDON_PERSONA status N/A amo STATUS_PUBLIC slug swag-overload name Bands Make Me Dance description tha description N/A N/A N/A N/A Persona objects create persona_id 0 addon_id N/A N/A self instance id license N/A N/A amo LICENSE_CC_BY id accentcolor C0FFEE textcolor EFFFFF N/A test_initial N/A N/A self N/A N/A N/A N/A self form N/A EditThemeOwnerForm None instance N/A self instance N/A N/A N/A N/A self form initial N/A N/A N/A N/A N/A N/A self instance addonuser_set create user_id 999 N/A N/A N/A N/A N/A N/A N/A N/A N/A self instance addonuser_set all N/A 0 user email regular@mozilla.com N/A N/A self form N/A EditThemeOwnerForm None instance N/A self instance N/A N/A N/A N/A self form initial N/A owner regular@mozilla.com N/A test_success_change_from_no_owner N/A N/A self N/A N/A N/A N/A self form N/A EditThemeOwnerForm N/A owner regular@mozilla.com instance N/A self instance N/A N/A N/A N/A self form is_valid N/A N/A self form errors N/A N/A N/A N/A self form save N/A N/A N/A N/A N/A N/A N/A N/A N/A self instance addonuser_set all N/A 0 user email regular@mozilla.com N/A test_success_replace_owner N/A N/A self N/A N/A N/A N/A N/A N/A N/A self instance addonuser_set create user_id 999 N/A N/A self form N/A EditThemeOwnerForm N/A owner regular@mozilla.com instance N/A self instance N/A N/A N/A N/A self form is_valid N/A N/A self form errors N/A N/A N/A N/A self form save N/A N/A N/A N/A N/A N/A N/A N/A N/A self instance addonuser_set all N/A 0 user email regular@mozilla.com N/A test_error_invalid_user N/A N/A self N/A N/A N/A N/A self form N/A EditThemeOwnerForm N/A owner omg@org.yes instance N/A self instance N/A N/A N/A N/A N/A self form is_valid N/A N/A