Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore BinOpMod Str NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict Str Str NameLoad Str Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If CompareIn Str NameLoad body Raise Call NameLoad Str decorator_list Assign AttributeStore NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args defaults kwarg body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr BoolOpOr NameLoad ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str ListLoad ListLoad Assign AttributeStore NameLoad attr ListLoad For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpAdd NameLoad Call NameLoad keyword NameLoad Assign NameStore Str Return Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Call NameLoad keyword Num keyword Num Return Dict Str Str Str Str Str Str Str Str Str Str NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str BoolOpOr NameLoad ListLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad If CompareGt Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Call NameLoad NameLoad keyword NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str NameLoad Return TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Call NameLoad Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareEq NameLoad Str body Raise Call NameLoad Dict Str Dict Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad Num Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Str body AugAssignAdd NameStore Num Return Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Num Num keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num Num Num keyword Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Num Num keyword Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Call NameLoad keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str ListLoad Dict Str Str Str NameLoad Str Str Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword NameLoad keyword Call NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str ListLoad Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad Call NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str Str Str AttributeLoad NameLoad attr Call AttributeLoad Str attr Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str Str NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Dict Str Str Str Str Str Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return Call NameLoad NameLoad NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call NameLoad BinOpSub NameLoad Call NameLoad keyword Num Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Call NameLoad keyword Num Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Call NameLoad keyword Num Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Call NameLoad keyword Num Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Call NameLoad keyword Num Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Call NameLoad keyword Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr ListLoad Dict Str ListLoad Dict Str SubscriptLoad NameLoad Index Num Dict Str SubscriptLoad NameLoad Index Num Dict Str SubscriptLoad NameLoad Index Num Dict Str Str Dict Str NameLoad Dict Str NameLoad Dict Str SubscriptLoad NameLoad Index Num Dict Str SubscriptLoad NameLoad Index Num Dict Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Call AttributeLoad NameLoad attr NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword Call NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str NameLoad Str Str Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Dict Str Str Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Dict Str Str Str Str Str Str Str Str NameLoad Str Call AttributeLoad BinOpSub NameLoad Call NameLoad keyword Num attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Dict Str Dict Str Str Str Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Dict Str Str Str Str Str Str NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad Call NameLoad keyword Num Assign TupleStore NameStore NameStore NameStore Call NameLoad ListLoad Str Str Str Str Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad ListLoad Str Str Str Str Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad ListLoad Str Str Str Str Str Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad ListLoad Str Str Str Str Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad ListLoad Str Str Str Str Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str NameLoad Str Call AttributeLoad BinOpSub NameLoad Call NameLoad keyword Num attr NameLoad NameLoad Str Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Dict Str Dict Str Str Str Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Call NameLoad Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Call NameLoad Str keyword NameLoad keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Call NameLoad Str Str Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str keyword Str decorator_list decorator_list
N/A N/A binascii N/A base64 N/A hashlib N/A json N/A gzip datetime datetime timedelta dateutil parser tz N/A rsa mock Mock call argparse Namespace awscli.compat six awscli.testutils BaseAWSCommandParamsTest awscli.customizations.cloudtrail.validation DigestError extract_digest_key_date normalize_date format_date DigestProvider DigestTraverser create_digest_traverser PublicKeyProvider Sha256RSADigestValidator DATE_FORMAT CloudTrailValidateLogs parse_date assert_cloudtrail_arn_is_valid DigestSignatureError InvalidDigestFormat S3ClientProvider botocore.exceptions ClientError awscli.testutils unittest N/A START_DATE N/A N/A parser parse 20140810T000000Z N/A END_DATE N/A N/A parser parse 20150810T000000Z N/A TEST_ACCOUNT_ID 123456789012 N/A TEST_TRAIL_ARN N/A arn:aws:cloudtrail:us-east-1:%s:trail/foo TEST_ACCOUNT_ID N/A VALID_TEST_KEY MIIBCgKCAQEAn11L2YZ9h7onug2ILi1MWyHiMRsTQjfWE+pHVRLk1QjfWhirG+lpOa8NrwQ/r7Ah5bNL6HepznOU9XTDSfmmnP97mqyc7z/upfZdS/AHhYcGaz7n6Wc/RRBU6VmiPCrAUojuSk6/GjvA8iOPFsYDuBtviXarvuLPlrT9kAd4Lb+rFfR5peEgBEkhlzc5HuWO7S0y+KunqxX6jQBnXGMtxmPBPP0FylgWGNdFtks/4YSKcgqwH0YDcawP9GGGDAeCIqPWIXDLG1jOjRRzWfCmD0iJUkz8vTsn4hq/5ZxRFE7UBAUiVcGbdnDdvVfhF9C3dQiDq3k7adQIziLT0cShgQIDAQAB create_mock_key_provider N/A N/A key_list N/A N/A N/A Creates a mock key provider that yields keys for each in key_list N/A public_keys N/A N/A k key_list N/A N/A N/A public_keys N/A k N/A Fingerprint Value k ffaa00 N/A key_provider N/A Mock N/A N/A N/A key_provider get_public_keys return_value public_keys N/A key_provider N/A create_scenario N/A N/A actions logs N/A None N/A N/A Creates a scenario for a stack of actions

    Each action can be "gap" meaning there is no previous link, "invalid"
    meaning we should simulate an invalid digest, "missing" meaning we
    should simulate a digest is missing from S3, "bucket_change" meaning
    it is a link but the bucket is different than the previous bucket.
    Values are popped one by one off of the list until a terminal "gap"
    action is found.
     N/A keys N/A N/A str i N/A i N/A range N/A len actions N/A key_provider N/A create_mock_key_provider keys N/A digest_provider N/A MockDigestProvider actions logs N/A digest_validator N/A Mock validate N/A N/A bucket key public_key digest_data digest_str N/A N/A N/A N/A _invalid digest_data N/A N/A N/A DigestError invalid error N/A N/A N/A digest_validator validate validate N/A N/A key_provider digest_provider digest_validator N/A collecting_callback N/A N/A N/A N/A N/A Create and return a callback and a list populated with call args N/A calls N/A cb N/A N/A N/A kwargs N/A N/A N/A N/A calls append kwargs N/A N/A N/A cb calls N/A MockDigestProvider N/A object N/A __init__ N/A N/A self actions logs N/A None N/A N/A N/A self logs N/A logs N/A N/A N/A self actions actions N/A N/A self calls N/A fetch_digest load_digest_keys_in_range N/A N/A N/A N/A self digests N/A N/A i N/A range N/A len N/A self actions N/A N/A N/A N/A N/A self digests append N/A N/A self get_key_at_position i N/A get_key_at_position N/A N/A self position N/A N/A N/A dt N/A START_DATE N/A timedelta hours position N/A key AWSLogs/{account}/CloudTrail-Digest/us-east-1/{ymd}/{account}_CloudTrail-Digest_us-east-1_foo_us-east-1_{date}.json.gz N/A N/A N/A key format account TEST_ACCOUNT_ID ymd N/A N/A dt strftime %Y/%m/%d date N/A N/A dt strftime DATE_FORMAT N/A create_digest N/A N/A fingerprint start_date key bucket next_key next_bucket logs N/A None None None N/A N/A digest_end_date N/A start_date N/A timedelta hours 1 minutes 30 N/A N/A digestPublicKeyFingerprint digestEndTime digestStartTime previousDigestS3Bucket previousDigestS3Object digestS3Bucket digestS3Object awsAccountId previousDigestSignature logFiles fingerprint N/A N/A digest_end_date strftime DATE_FORMAT N/A N/A start_date strftime DATE_FORMAT next_bucket next_key bucket key TEST_ACCOUNT_ID abcd N/A logs N/A N/A staticmethod create_link N/A N/A key next_key next_bucket position action logs bucket N/A N/A N/A Creates a link in a digest chain for testing. N/A digest_logs N/A N/A N/A N/A len logs position N/A N/A digest_logs N/A logs N/A position N/A end_date N/A parse_date N/A extract_digest_key_date key N/A N/A action gap N/A N/A digest N/A N/A MockDigestProvider create_digest key key bucket bucket fingerprint N/A str position start_date end_date logs digest_logs N/A N/A digest N/A N/A MockDigestProvider create_digest key key bucket bucket fingerprint N/A str position start_date end_date next_bucket next_bucket next_key next_key logs digest_logs N/A N/A action invalid N/A N/A N/A digest N/A _invalid True N/A N/A digest N/A N/A json dumps digest N/A staticmethod load_digest_keys_in_range N/A N/A self bucket prefix start_date end_date N/A N/A N/A N/A N/A N/A N/A self calls N/A load_digest_keys_in_range append N/A locals N/A N/A list N/A self digests N/A fetch_digest N/A N/A self bucket key N/A N/A N/A N/A N/A N/A N/A self calls N/A fetch_digest append key N/A position N/A N/A N/A self digests index key N/A action N/A N/A self actions N/A position N/A N/A action missing N/A N/A N/A ClientError N/A Error N/A Code Message NoSuchKey foo GetObject N/A next_key N/A N/A self get_key_at_position N/A position 1 N/A next_bucket N/A int bucket N/A N/A action bucket_change N/A N/A next_bucket 1 N/A N/A N/A self create_link key next_key N/A str next_bucket position action N/A self logs bucket N/A N/A TestValidation N/A N/A unittest TestCase N/A test_formats_dates N/A N/A self N/A N/A N/A date N/A datetime 2015 8 21 tzinfo N/A N/A tz tzutc N/A N/A N/A self assertEqual 20150821T000000Z N/A format_date date N/A test_parses_dates_with_better_error_message N/A N/A self N/A N/A N/A N/A N/A N/A parse_date foo N/A N/A N/A self fail Should have failed to parse N/A N/A N/A ValueError N/A e N/A N/A N/A N/A self assertIn Unable to parse date value: foo N/A str e N/A test_parses_dates N/A N/A self N/A N/A N/A date N/A parse_date August 25, 2015 00:00:00 UTC N/A N/A N/A self assertEqual date N/A datetime 2015 8 25 tzinfo N/A N/A tz tzutc N/A test_ensures_cloudtrail_arns_are_valid N/A N/A self N/A N/A N/A N/A N/A N/A assert_cloudtrail_arn_is_valid foo:bar:baz N/A N/A N/A self fail Should have failed N/A N/A N/A ValueError N/A e N/A N/A N/A N/A self assertIn Invalid trail ARN provided: foo:bar:baz N/A str e N/A test_ensures_cloudtrail_arns_are_valid_when_missing_resource N/A N/A self N/A N/A N/A N/A N/A N/A assert_cloudtrail_arn_is_valid N/A arn:aws:cloudtrail:us-east-1:%s:foo TEST_ACCOUNT_ID N/A N/A N/A self fail Should have failed N/A N/A N/A ValueError N/A e N/A N/A N/A N/A self assertIn Invalid trail ARN provided N/A str e N/A test_allows_valid_arns N/A N/A self N/A N/A N/A N/A assert_cloudtrail_arn_is_valid N/A arn:aws:cloudtrail:us-east-1:%s:trail/foo TEST_ACCOUNT_ID N/A test_normalizes_date_timezones N/A N/A self N/A N/A N/A date N/A datetime 2015 8 21 tzinfo N/A N/A tz tzlocal N/A normalized N/A normalize_date date N/A N/A N/A self assertEqual N/A N/A tz tzutc N/A normalized tzinfo N/A test_extracts_dates_from_digest_keys N/A N/A self N/A N/A N/A arn N/A N/A AWSLogs/{account}/CloudTrail-Digest/us-east-1/2015/08/16/{account}_CloudTrail-Digest_us-east-1_foo_us-east-1_20150816T230550Z.json.gz format account TEST_ACCOUNT_ID N/A N/A N/A self assertEqual 20150816T230550Z N/A extract_digest_key_date arn N/A test_creates_traverser N/A N/A self N/A N/A N/A mock_s3_provider N/A Mock N/A traverser N/A create_digest_traverser trail_arn TEST_TRAIL_ARN cloudtrail_client N/A Mock trail_source_region us-east-1 s3_client_provider mock_s3_provider bucket bucket prefix prefix N/A N/A N/A self assertEqual bucket N/A traverser starting_bucket N/A N/A N/A self assertEqual prefix N/A traverser starting_prefix N/A digest_provider N/A traverser digest_provider N/A N/A N/A self assertEqual us-east-1 N/A digest_provider trail_home_region N/A N/A N/A self assertEqual foo N/A digest_provider trail_name N/A test_creates_traverser_and_gets_trail_by_arn N/A N/A self N/A N/A N/A cloudtrail_client N/A Mock N/A N/A N/A cloudtrail_client describe_trails return_value N/A trailList N/A N/A TrailARN S3BucketName S3KeyPrefix TEST_TRAIL_ARN bucket prefix N/A traverser N/A create_digest_traverser trail_arn TEST_TRAIL_ARN trail_source_region us-east-1 cloudtrail_client cloudtrail_client s3_client_provider N/A Mock N/A N/A N/A self assertEqual bucket N/A traverser starting_bucket N/A N/A N/A self assertEqual prefix N/A traverser starting_prefix N/A digest_provider N/A traverser digest_provider N/A N/A N/A self assertEqual us-east-1 N/A digest_provider trail_home_region N/A N/A N/A self assertEqual foo N/A digest_provider trail_name N/A N/A TestPublicKeyProvider N/A N/A unittest TestCase N/A test_returns_public_key_in_range N/A N/A self N/A N/A N/A cloudtrail_client N/A Mock N/A N/A N/A cloudtrail_client list_public_keys return_value N/A PublicKeyList N/A N/A Fingerprint OtherData Value a a a N/A Fingerprint OtherData Value b b b N/A Fingerprint OtherData Value c c c N/A provider N/A PublicKeyProvider cloudtrail_client N/A start_date START_DATE N/A end_date N/A start_date N/A timedelta days 2 N/A keys N/A N/A provider get_public_keys start_date end_date N/A N/A N/A self assertEquals N/A a b c N/A Fingerprint OtherData Value a a a N/A Fingerprint OtherData Value b b b N/A Fingerprint OtherData Value c c c keys N/A N/A N/A N/A cloudtrail_client list_public_keys assert_has_calls N/A N/A call EndTime end_date StartTime start_date N/A N/A TestSha256RSADigestValidator N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _digest_data N/A digestStartTime digestEndTime awsAccountId digestPublicKeyFingerprint digestS3Bucket digestS3Object previousDigestSignature baz foo account abc bucket object xyz N/A N/A self _inflated_digest N/A N/A N/A N/A json dumps N/A self _digest_data encode N/A N/A N/A self _digest_data N/A _signature aeff N/A test_validates_digests N/A N/A self N/A N/A N/A N/A public_key private_key N/A N/A rsa newkeys 512 N/A sha256_hash N/A N/A hashlib sha256 N/A self _inflated_digest N/A string_to_sign N/A %s
%s/%s
%s
%s N/A N/A N/A self _digest_data N/A digestEndTime N/A N/A self _digest_data N/A digestS3Bucket N/A N/A self _digest_data N/A digestS3Object N/A N/A sha256_hash hexdigest N/A N/A self _digest_data N/A previousDigestSignature N/A signature N/A N/A rsa sign N/A N/A string_to_sign encode private_key SHA-256 N/A N/A N/A self _digest_data N/A _signature N/A N/A binascii hexlify signature N/A validator N/A Sha256RSADigestValidator N/A public_key_b64 N/A N/A base64 b64encode N/A N/A public_key save_pkcs1 format DER N/A N/A N/A validator validate b k public_key_b64 N/A self _digest_data N/A self _inflated_digest N/A test_does_not_expose_underlying_key_decoding_error N/A N/A self N/A N/A N/A validator N/A Sha256RSADigestValidator N/A N/A N/A N/A N/A validator validate b k YQo= N/A self _digest_data N/A N/A invalid encode N/A N/A N/A self fail Should have failed N/A N/A N/A DigestError N/A e N/A N/A N/A N/A self assertEqual Digest file	s3://b/k	INVALID: Unable to load PKCS #1 key with fingerprint abc N/A str e N/A test_does_not_expose_underlying_validation_error N/A N/A self N/A N/A N/A validator N/A Sha256RSADigestValidator N/A N/A N/A N/A N/A validator validate b k VALID_TEST_KEY N/A self _digest_data N/A N/A invalid encode N/A N/A N/A self fail Should have failed N/A N/A N/A DigestSignatureError N/A e N/A N/A N/A N/A self assertEqual Digest file	s3://b/k	INVALID: signature verification failed N/A str e N/A test_properly_signs_when_no_previous_signature N/A N/A self N/A N/A N/A validator N/A Sha256RSADigestValidator N/A digest_data N/A digestEndTime digestS3Bucket digestS3Object previousDigestSignature a b c None N/A signed N/A N/A validator _create_string_to_sign digest_data N/A N/A abc encode N/A N/A N/A self assertEqual N/A N/A a
b/c
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
null encode signed N/A N/A TestDigestProvider N/A BaseAWSCommandParamsTest N/A _fake_key N/A N/A self date N/A N/A N/A parsed N/A N/A parser parse date N/A N/A N/A prefix/AWSLogs/{account}/CloudTrail-Digest/us-east-1/{year}/{month}/{day}/{account}_CloudTrail-Digest_us-east-1_foo_us-east-1_{date}.json.gz format date date year N/A parsed year month N/A parsed month account TEST_ACCOUNT_ID day N/A parsed day N/A _get_mock_provider N/A N/A self s3_client N/A N/A N/A mock_s3_client_provider N/A Mock N/A N/A N/A mock_s3_client_provider get_client return_value s3_client N/A N/A DigestProvider mock_s3_client_provider TEST_ACCOUNT_ID foo us-east-1 N/A test_initializes_public_properties N/A N/A self N/A N/A N/A client N/A Mock N/A provider N/A DigestProvider client TEST_ACCOUNT_ID foo us-east-1 N/A N/A N/A self assertEqual TEST_ACCOUNT_ID N/A provider account_id N/A N/A N/A self assertEqual foo N/A provider trail_name N/A N/A N/A self assertEqual us-east-1 N/A provider trail_home_region N/A test_returns_digests_in_range N/A N/A self N/A N/A N/A s3_client N/A N/A N/A N/A self driver session create_client s3 N/A keys N/A N/A N/A self _fake_key N/A format_date N/A START_DATE N/A timedelta days 1 N/A N/A self _fake_key N/A format_date N/A START_DATE N/A timedelta days 1 N/A N/A self _fake_key N/A format_date N/A START_DATE N/A timedelta days 2 N/A N/A self _fake_key N/A format_date N/A START_DATE N/A timedelta days 3 N/A N/A self _fake_key N/A format_date N/A END_DATE N/A timedelta hours 1 N/A N/A self _fake_key N/A format_date N/A END_DATE N/A timedelta days 1 N/A bad_name N/A N/A N/A keys N/A 3 replace foo baz N/A bad_region N/A N/A N/A keys N/A 3 replace CloudTrail-Digest/us-east-1 CloudTrail-Digest/us-west-2 N/A bad_region N/A N/A bad_region replace CloudTrail-Digest_us-east-1 CloudTrail-Digest_us-west-2 N/A N/A self parsed_responses N/A N/A Contents N/A N/A Key N/A keys N/A 0 N/A Key N/A keys N/A 1 N/A Key N/A keys N/A 2 N/A Key foo/baz/bar N/A Key bad_name N/A Key bad_region N/A Key N/A keys N/A 3 N/A Key N/A keys N/A 4 N/A Key N/A keys N/A 5 N/A N/A N/A self patch_make_request N/A provider N/A N/A self _get_mock_provider s3_client N/A digests N/A N/A provider load_digest_keys_in_range foo prefix START_DATE END_DATE N/A N/A N/A self assertNotIn bad_name digests N/A N/A N/A self assertNotIn bad_region digests N/A N/A N/A self assertEqual N/A keys N/A 1 N/A digests N/A 0 N/A N/A N/A self assertEqual N/A keys N/A 2 N/A digests N/A 1 N/A N/A N/A self assertEqual N/A keys N/A 3 N/A digests N/A 2 N/A N/A N/A self assertEqual N/A keys N/A 4 N/A digests N/A 3 N/A test_calls_list_objects_correctly N/A N/A self N/A N/A N/A s3_client N/A Mock N/A mock_paginate N/A N/A N/A s3_client get_paginator return_value paginate N/A mock_search N/A N/A mock_paginate return_value search N/A N/A mock_search return_value N/A N/A provider N/A N/A self _get_mock_provider s3_client N/A N/A N/A provider load_digest_keys_in_range 1 prefix START_DATE END_DATE N/A marker prefix/AWSLogs/{account}/CloudTrail-Digest/us-east-1/2014/08/09/{account}_CloudTrail-Digest_us-east-1_foo_us-east-1_20140809T235900Z.json.gz N/A N/A N/A mock_paginate assert_called_once_with Bucket 1 Marker N/A N/A marker format account TEST_ACCOUNT_ID N/A test_ensures_digest_has_proper_metadata N/A N/A self N/A N/A N/A out N/A N/A six BytesIO N/A f N/A N/A gzip GzipFile fileobj out mode wb N/A N/A N/A f write N/A N/A {"foo":"bar"} encode N/A N/A N/A f close N/A gzipped_data N/A N/A out getvalue N/A s3_client N/A Mock N/A N/A N/A s3_client get_object return_value N/A Body Metadata N/A N/A six BytesIO gzipped_data N/A N/A provider N/A N/A self _get_mock_provider s3_client N/A N/A N/A self assertRaises DigestSignatureError N/A N/A N/A N/A provider fetch_digest bucket key N/A test_ensures_digest_can_be_gzip_inflated N/A N/A self N/A N/A N/A s3_client N/A Mock N/A N/A N/A s3_client get_object return_value N/A Body Metadata N/A N/A six BytesIO N/A N/A foo encode N/A N/A provider N/A N/A self _get_mock_provider s3_client N/A N/A N/A self assertRaises InvalidDigestFormat N/A N/A N/A N/A provider fetch_digest bucket key N/A test_ensures_digests_can_be_json_parsed N/A N/A self N/A N/A N/A json_str {{{ N/A out N/A N/A six BytesIO N/A f N/A N/A gzip GzipFile fileobj out mode wb N/A N/A N/A f write N/A N/A json_str encode N/A N/A N/A f close N/A gzipped_data N/A N/A out getvalue N/A s3_client N/A Mock N/A N/A N/A s3_client get_object return_value N/A Body Metadata N/A N/A six BytesIO gzipped_data N/A signature signature-algorithm abc SHA256 N/A provider N/A N/A self _get_mock_provider s3_client N/A N/A N/A self assertRaises InvalidDigestFormat N/A N/A N/A N/A provider fetch_digest bucket key N/A test_fetches_digests N/A N/A self N/A N/A N/A json_str {"foo":"bar"} N/A out N/A N/A six BytesIO N/A f N/A N/A gzip GzipFile fileobj out mode wb N/A N/A N/A f write N/A N/A json_str encode N/A N/A N/A f close N/A gzipped_data N/A N/A out getvalue N/A s3_client N/A Mock N/A N/A N/A s3_client get_object return_value N/A Body Metadata N/A N/A six BytesIO gzipped_data N/A signature signature-algorithm abc SHA256 N/A provider N/A N/A self _get_mock_provider s3_client N/A result N/A N/A provider fetch_digest bucket key N/A N/A N/A self assertEqual N/A foo _signature _signature_algorithm bar abc SHA256 N/A result N/A 0 N/A N/A N/A self assertEqual N/A N/A json_str encode N/A result N/A 1 N/A N/A TestDigestTraverser N/A N/A unittest TestCase N/A test_initializes_with_default_validator N/A N/A self N/A N/A N/A provider N/A Mock N/A traverser N/A DigestTraverser digest_provider provider starting_bucket 1 starting_prefix baz public_key_provider N/A Mock N/A N/A N/A self assertEqual 1 N/A traverser starting_bucket N/A N/A N/A self assertEqual baz N/A traverser starting_prefix N/A N/A N/A self assertEqual provider N/A traverser digest_provider N/A test_ensures_public_keys_are_loaded N/A N/A self N/A N/A N/A start_date START_DATE N/A end_date END_DATE N/A digest_provider N/A Mock N/A key_provider N/A Mock N/A N/A N/A key_provider get_public_keys return_value N/A N/A traverser N/A DigestTraverser digest_provider digest_provider starting_bucket 1 starting_prefix baz public_key_provider key_provider N/A digest_iter N/A N/A traverser traverse start_date end_date N/A N/A N/A self assertRaises RuntimeError N/A N/A N/A next digest_iter N/A N/A N/A N/A key_provider get_public_keys assert_called_with start_date end_date N/A test_ensures_public_key_is_found N/A N/A self N/A N/A N/A start_date START_DATE N/A end_date END_DATE N/A key_name N/A N/A N/A end_date strftime DATE_FORMAT .json.gz N/A region us-west-2 N/A digest_provider N/A Mock N/A N/A digest_provider trail_home_region region N/A N/A N/A digest_provider load_digest_keys_in_range return_value N/A key_name N/A N/A N/A digest_provider fetch_digest return_value N/A N/A digestEndTime digestStartTime awsAccountId digestPublicKeyFingerprint digestS3Bucket digestS3Object previousDigestSignature foo foo account abc 1 key_name xyz abc N/A key_provider N/A Mock N/A N/A N/A key_provider get_public_keys return_value N/A N/A Fingerprint a N/A N/A on_invalid calls N/A collecting_callback N/A traverser N/A DigestTraverser digest_provider digest_provider starting_bucket 1 starting_prefix baz public_key_provider key_provider on_invalid on_invalid N/A digest_iter N/A N/A traverser traverse start_date end_date N/A N/A N/A self assertRaises StopIteration N/A N/A N/A next digest_iter N/A N/A N/A self assertEqual 1 N/A len calls N/A N/A N/A self assertEqual N/A Digest file	s3://1/%s	INVALID: public key not found in region %s for fingerprint abc N/A key_name region N/A N/A calls N/A 0 N/A message N/A test_invokes_digest_validator N/A N/A self N/A N/A N/A start_date START_DATE N/A end_date END_DATE N/A key_name N/A N/A N/A end_date strftime DATE_FORMAT .json.gz N/A digest N/A digestPublicKeyFingerprint digestS3Bucket digestS3Object previousDigestSignature digestStartTime digestEndTime a 1 key_name ... N/A N/A N/A end_date N/A timedelta hours 1 strftime DATE_FORMAT N/A N/A end_date strftime DATE_FORMAT N/A digest_provider N/A Mock N/A N/A N/A digest_provider load_digest_keys_in_range return_value N/A key_name N/A N/A N/A digest_provider fetch_digest return_value N/A digest key_name N/A key_provider N/A Mock N/A public_keys N/A a N/A Fingerprint Value a a N/A N/A N/A key_provider get_public_keys return_value public_keys N/A digest_validator N/A Mock N/A traverser N/A DigestTraverser digest_provider digest_provider starting_bucket 1 starting_prefix baz public_key_provider key_provider digest_validator digest_validator N/A digest_iter N/A N/A traverser traverse start_date end_date N/A N/A N/A self assertEqual digest N/A next digest_iter N/A N/A N/A N/A digest_validator validate assert_called_with 1 key_name N/A N/A public_keys N/A a N/A Value digest key_name N/A test_ensures_digest_from_same_location_as_json_contents N/A N/A self N/A N/A N/A start_date START_DATE N/A end_date END_DATE N/A N/A callback collected N/A collecting_callback N/A key_name N/A N/A N/A end_date strftime DATE_FORMAT .json.gz N/A digest N/A digestPublicKeyFingerprint digestS3Bucket digestS3Object digestEndTime a not_same key_name N/A N/A end_date strftime DATE_FORMAT N/A digest_provider N/A Mock N/A N/A N/A digest_provider load_digest_keys_in_range return_value N/A key_name N/A N/A N/A digest_provider fetch_digest return_value N/A digest key_name N/A key_provider N/A Mock N/A digest_validator N/A Mock N/A traverser N/A DigestTraverser digest_provider digest_provider starting_bucket 1 starting_prefix baz public_key_provider key_provider digest_validator digest_validator on_invalid callback N/A digest_iter N/A N/A traverser traverse start_date end_date N/A N/A N/A self assertIsNone N/A next digest_iter None N/A N/A N/A self assertEqual 1 N/A len collected N/A N/A N/A self assertEqual N/A Digest file	s3://1/%s	INVALID: invalid format key_name N/A N/A collected N/A 0 N/A message N/A test_loads_digests_in_range N/A N/A self N/A N/A N/A start_date START_DATE N/A end_date N/A START_DATE N/A timedelta hours 5 N/A N/A key_provider digest_provider validator N/A create_scenario N/A gap link link link N/A traverser N/A DigestTraverser digest_provider digest_provider starting_bucket 1 starting_prefix baz public_key_provider key_provider digest_validator validator N/A collected N/A list N/A N/A traverser traverse start_date end_date N/A N/A N/A self assertEqual 1 N/A N/A key_provider get_public_keys call_count N/A N/A N/A self assertEqual 1 N/A len N/A N/A digest_provider calls N/A load_digest_keys_in_range N/A N/A N/A self assertEqual 4 N/A len N/A N/A digest_provider calls N/A fetch_digest N/A N/A N/A self assertEquals 4 N/A len collected N/A test_invokes_cb_and_continues_when_missing N/A N/A self N/A N/A N/A start_date START_DATE N/A end_date END_DATE N/A N/A key_provider digest_provider validator N/A create_scenario N/A gap link missing link N/A N/A on_missing missing_calls N/A collecting_callback N/A traverser N/A DigestTraverser digest_provider digest_provider starting_bucket 1 starting_prefix baz public_key_provider key_provider digest_validator validator on_missing on_missing N/A collected N/A list N/A N/A traverser traverse start_date end_date N/A N/A N/A self assertEquals 3 N/A len collected N/A N/A N/A self assertEqual 1 N/A N/A key_provider get_public_keys call_count N/A N/A N/A self assertEquals 1 N/A len missing_calls N/A N/A N/A self assertIn bucket N/A missing_calls N/A 0 N/A N/A N/A self assertIn next_end_date N/A missing_calls N/A 0 N/A N/A N/A self assertEqual N/A N/A digest_provider digests N/A 1 N/A N/A missing_calls N/A 0 N/A next_key N/A N/A N/A self assertEqual N/A N/A digest_provider digests N/A 2 N/A N/A missing_calls N/A 0 N/A last_key N/A N/A N/A self assertEqual 1 N/A N/A key_provider get_public_keys call_count N/A N/A N/A self assertEqual 1 N/A len N/A N/A digest_provider calls N/A load_digest_keys_in_range N/A N/A N/A self assertEqual 4 N/A len N/A N/A digest_provider calls N/A fetch_digest N/A test_invokes_cb_and_continues_when_invalid N/A N/A self N/A N/A N/A start_date START_DATE N/A end_date END_DATE N/A N/A key_provider digest_provider validator N/A create_scenario N/A gap link invalid link invalid N/A N/A on_invalid invalid_calls N/A collecting_callback N/A traverser N/A DigestTraverser digest_provider digest_provider starting_bucket 1 starting_prefix baz public_key_provider key_provider digest_validator validator on_invalid on_invalid N/A collected N/A list N/A N/A traverser traverse start_date end_date N/A N/A N/A self assertEquals 3 N/A len collected N/A N/A N/A self assertEqual 1 N/A N/A key_provider get_public_keys call_count N/A N/A N/A self assertEquals 2 N/A len invalid_calls N/A N/A N/A self assertIn bucket N/A invalid_calls N/A 0 N/A N/A N/A self assertIn next_end_date N/A invalid_calls N/A 0 N/A N/A N/A self assertEqual N/A N/A digest_provider digests N/A 4 N/A N/A invalid_calls N/A 0 N/A last_key N/A N/A N/A self assertEqual N/A N/A digest_provider digests N/A 3 N/A N/A invalid_calls N/A 0 N/A next_key N/A N/A N/A self assertEqual N/A N/A digest_provider digests N/A 2 N/A N/A invalid_calls N/A 1 N/A last_key N/A N/A N/A self assertEqual N/A N/A digest_provider digests N/A 1 N/A N/A invalid_calls N/A 1 N/A next_key N/A N/A N/A self assertEqual 1 N/A N/A key_provider get_public_keys call_count N/A N/A N/A self assertEqual 1 N/A len N/A N/A digest_provider calls N/A load_digest_keys_in_range N/A N/A N/A self assertEqual 5 N/A len N/A N/A digest_provider calls N/A fetch_digest N/A test_invokes_cb_and_continues_when_gap N/A N/A self N/A N/A N/A start_date START_DATE N/A end_date END_DATE N/A N/A key_provider digest_provider validator N/A create_scenario N/A gap link gap gap N/A N/A on_gap gap_calls N/A collecting_callback N/A traverser N/A DigestTraverser digest_provider digest_provider starting_bucket 1 starting_prefix baz public_key_provider key_provider digest_validator validator on_gap on_gap N/A collected N/A list N/A N/A traverser traverse start_date end_date N/A N/A N/A self assertEquals 4 N/A len collected N/A N/A N/A self assertEqual 1 N/A N/A key_provider get_public_keys call_count N/A N/A N/A self assertEquals 2 N/A len gap_calls N/A N/A N/A self assertIn bucket N/A gap_calls N/A 0 N/A N/A N/A self assertIn next_key N/A gap_calls N/A 0 N/A N/A N/A self assertIn next_end_date N/A gap_calls N/A 0 N/A N/A N/A self assertIn last_key N/A gap_calls N/A 0 N/A N/A N/A self assertIn last_start_date N/A gap_calls N/A 0 N/A N/A N/A self assertEqual N/A N/A digest_provider digests N/A 3 N/A N/A gap_calls N/A 0 N/A last_key N/A N/A N/A self assertEqual N/A N/A digest_provider digests N/A 2 N/A N/A gap_calls N/A 0 N/A next_key N/A N/A N/A self assertEqual N/A N/A digest_provider digests N/A 2 N/A N/A gap_calls N/A 1 N/A last_key N/A N/A N/A self assertEqual N/A N/A digest_provider digests N/A 1 N/A N/A gap_calls N/A 1 N/A next_key N/A N/A N/A self assertEqual 1 N/A N/A key_provider get_public_keys call_count N/A N/A N/A self assertEqual 1 N/A len N/A N/A digest_provider calls N/A load_digest_keys_in_range N/A N/A N/A self assertEqual 4 N/A len N/A N/A digest_provider calls N/A fetch_digest N/A test_reloads_objects_on_bucket_change N/A N/A self N/A N/A N/A start_date START_DATE N/A end_date END_DATE N/A N/A key_provider digest_provider validator N/A create_scenario N/A gap link bucket_change link N/A traverser N/A DigestTraverser digest_provider digest_provider starting_bucket 1 starting_prefix baz public_key_provider key_provider digest_validator validator N/A collected N/A list N/A N/A traverser traverse start_date end_date N/A N/A N/A self assertEquals 4 N/A len collected N/A N/A N/A self assertEqual 1 N/A N/A key_provider get_public_keys call_count N/A N/A N/A self assertEqual 1 N/A N/A key_provider get_public_keys call_count N/A N/A N/A self assertEqual 2 N/A len N/A N/A digest_provider calls N/A load_digest_keys_in_range N/A N/A N/A self assertEquals N/A 1 1 2 2 N/A N/A c N/A digestS3Bucket N/A c collected N/A test_does_not_hard_fail_on_invalid_signature N/A N/A self N/A N/A N/A start_date START_DATE N/A end_date END_DATE N/A end_timestamp N/A N/A N/A end_date strftime DATE_FORMAT .json.gz N/A digest N/A digestPublicKeyFingerprint digestS3Bucket digestS3Object previousDigestSignature digestStartTime digestEndTime _signature a 1 end_timestamp ... N/A N/A N/A end_date N/A timedelta hours 1 strftime DATE_FORMAT end_timestamp 123 N/A digest_provider N/A Mock N/A N/A N/A digest_provider load_digest_keys_in_range return_value N/A end_timestamp N/A N/A N/A digest_provider fetch_digest return_value N/A digest end_timestamp N/A key_provider N/A Mock N/A public_keys N/A a N/A Fingerprint Value a a N/A N/A N/A key_provider get_public_keys return_value public_keys N/A digest_validator N/A Sha256RSADigestValidator N/A N/A on_invalid calls N/A collecting_callback N/A traverser N/A DigestTraverser digest_provider digest_provider starting_bucket 1 starting_prefix baz public_key_provider key_provider digest_validator digest_validator on_invalid on_invalid N/A digest_iter N/A N/A traverser traverse start_date end_date N/A N/A next digest_iter None N/A N/A N/A self assertEquals N/A Digest file	s3://1/%s	INVALID: Incorrect padding end_timestamp N/A N/A calls N/A 0 N/A message N/A N/A TestCloudTrailCommand N/A BaseAWSCommandParamsTest N/A test_s3_client_created_lazily N/A N/A self N/A N/A N/A session N/A Mock N/A command N/A CloudTrailValidateLogs session N/A parsed_globals N/A Mock region None verify_ssl None endpoint_url None N/A N/A N/A command setup_services parsed_globals N/A create_client_calls N/A N/A session create_client call_args_list N/A N/A N/A self assertEqual create_client_calls N/A N/A call cloudtrail verify None region_name None N/A test_endpoint_url_is_used_for_cloudtrail N/A N/A self N/A N/A N/A endpoint_url https://mycloudtrail.aws.amazon.com/ N/A session N/A Mock N/A command N/A CloudTrailValidateLogs session N/A parsed_globals N/A Mock region foo verify_ssl None endpoint_url endpoint_url N/A N/A N/A command setup_services parsed_globals N/A create_client_calls N/A N/A session create_client call_args_list N/A N/A N/A self assertEqual create_client_calls N/A N/A call cloudtrail verify None region_name foo endpoint_url endpoint_url N/A test_initializes_args N/A N/A self N/A N/A N/A session N/A Mock N/A command N/A CloudTrailValidateLogs session N/A start_date N/A N/A START_DATE strftime DATE_FORMAT N/A args N/A Namespace trail_arn abc verbose True start_time start_date s3_bucket bucket s3_prefix prefix end_time None N/A N/A N/A command handle_args args N/A N/A N/A self assertEqual abc N/A command trail_arn N/A N/A N/A self assertEqual True N/A command is_verbose N/A N/A N/A self assertEqual bucket N/A command s3_bucket N/A N/A N/A self assertEqual prefix N/A command s3_prefix N/A N/A N/A self assertEqual start_date N/A N/A N/A command start_time strftime DATE_FORMAT N/A N/A N/A self assertIsNotNone N/A command end_time N/A N/A N/A self assertGreater N/A command end_time N/A command start_time N/A N/A TestS3ClientProvider N/A BaseAWSCommandParamsTest N/A test_creates_clients_for_buckets_in_us_east_1 N/A N/A self N/A N/A N/A session N/A Mock N/A s3_client N/A Mock N/A N/A N/A session create_client return_value s3_client N/A N/A N/A s3_client get_bucket_location return_value N/A LocationConstraint N/A provider N/A S3ClientProvider session N/A created_client N/A N/A provider get_client foo N/A N/A N/A self assertEqual s3_client created_client N/A create_client_calls N/A N/A session create_client call_args_list N/A N/A N/A self assertEqual create_client_calls N/A N/A call s3 us-east-1 N/A N/A N/A self assertEqual 1 N/A N/A s3_client get_bucket_location call_count N/A test_creates_clients_for_buckets_outside_us_east_1 N/A N/A self N/A N/A N/A session N/A Mock N/A s3_client N/A Mock N/A N/A N/A session create_client return_value s3_client N/A N/A N/A s3_client get_bucket_location return_value N/A LocationConstraint us-west-2 N/A provider N/A S3ClientProvider session us-west-1 N/A created_client N/A N/A provider get_client foo N/A N/A N/A self assertEqual s3_client created_client N/A create_client_calls N/A N/A session create_client call_args_list N/A N/A N/A self assertEqual create_client_calls N/A N/A call s3 us-west-1 N/A call s3 us-west-2 N/A N/A N/A self assertEqual 1 N/A N/A s3_client get_bucket_location call_count N/A test_caches_previously_loaded_bucket_regions N/A N/A self N/A N/A N/A session N/A Mock N/A s3_client N/A Mock N/A N/A N/A session create_client return_value s3_client N/A N/A N/A s3_client get_bucket_location return_value N/A LocationConstraint N/A provider N/A S3ClientProvider session N/A N/A N/A provider get_client foo N/A N/A N/A self assertEqual 1 N/A N/A s3_client get_bucket_location call_count N/A N/A N/A provider get_client foo N/A N/A N/A self assertEqual 1 N/A N/A s3_client get_bucket_location call_count N/A N/A N/A provider get_client bar N/A N/A N/A self assertEqual 2 N/A N/A s3_client get_bucket_location call_count N/A N/A N/A provider get_client bar N/A N/A N/A self assertEqual 2 N/A N/A s3_client get_bucket_location call_count N/A test_caches_previously_loaded_clients N/A N/A self N/A N/A N/A session N/A Mock N/A s3_client N/A Mock N/A N/A N/A session create_client return_value s3_client N/A N/A N/A s3_client get_bucket_location return_value N/A LocationConstraint N/A provider N/A S3ClientProvider session N/A client N/A N/A provider get_client foo N/A N/A N/A self assertEqual 1 N/A N/A session create_client call_count N/A N/A N/A self assertEqual client N/A N/A provider get_client foo N/A N/A N/A self assertEqual 1 N/A N/A session create_client call_count N/A test_removes_cli_error_events N/A N/A self N/A N/A N/A session N/A Mock N/A s3_client N/A Mock N/A N/A N/A session create_client return_value s3_client N/A N/A N/A s3_client get_bucket_location return_value N/A LocationConstraint N/A provider N/A S3ClientProvider session N/A client N/A N/A provider get_client foo N/A N/A N/A N/A N/A N/A client meta events unregister assert_called_with after-call unique_id awscli-error-handler N/A N/A