Module ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore TupleLoad Call AttributeLoad NameLoad attr Str Num Assign NameStore Dict Str Str Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Assign NameStore Dict Str Str Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call SubscriptLoad NameLoad Index NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assert Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Call SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assert NameLoad Str Assert CompareIn NameLoad AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Num keyword Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad keyword Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num keyword Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num keyword Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str keyword NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore TupleLoad Str Num Num Num Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword NameLoad Expr Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore TupleLoad Str Num Num Num Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword NameLoad Expr Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str keyword NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword Str keyword NameLoad Expr Call NameLoad NameLoad Str TupleLoad Str Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword Str keyword NameLoad Expr Call NameLoad NameLoad Str TupleLoad Str Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword Str Expr Call NameLoad NameLoad Str TupleLoad Str Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword Str Expr Call NameLoad NameLoad Str TupleLoad Str Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore TupleLoad TupleLoad Num Str TupleLoad Num Str TupleLoad Num Str TupleLoad Num Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad BinOpMod Str NameLoad decorator_list For TupleStore NameStore NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Num keyword Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Num keyword Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num keyword Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam NameParam defaults body Assign NameStore TupleLoad TupleLoad Str TupleLoad Str Str Num TupleLoad Str TupleLoad Str Str Num TupleLoad Str TupleLoad Str Str Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num body Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list For TupleStore NameStore TupleStore NameStore NameStore NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad keyword Str Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad keyword Str Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr Str body Pass Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return ListLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Return ListLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str Expr Call NameLoad ListLoad Num Num Call NameLoad Num Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str Expr Call NameLoad ListLoad Num Num Call NameLoad Num Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str Expr Call NameLoad ListLoad Num Num Call NameLoad Num Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Assert Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Num body Pass Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return ListLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Num FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Return ListLoad NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Num Expr Call NameLoad ListLoad Num Num Call NameLoad Num Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str Expr Call NameLoad ListLoad Num Num Num Call NameLoad Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr Str body Raise Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args defaults body Raise Call NameLoad decorator_list Call AttributeLoad NameLoad attr Str With Call NameLoad NameLoad body Expr Call NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Assert CompareIs AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assert CompareIs AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr Str body Pass Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body FunctionDef arguments args defaults body Pass decorator_list Call AttributeLoad NameLoad attr Str Expr Call NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call Call NameLoad NameLoad NameLoad Str NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad NameLoad decorator_list For TupleStore NameStore NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword Num Expr Call NameLoad AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Lambda arguments args defaults Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Num Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Num AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareLtE Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Index Num Index Num Num Assert CompareLtE Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Index Num Index Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad Str Num Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad Num AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr With Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str
N/A __future__ with_statement N/A random N/A re N/A socket N/A mock nose.tools eq_ statsd StatsClient statsd TCPStatsClient N/A ADDR N/A N/A N/A socket gethostbyname localhost 8125 N/A send_method N/A udp tcp N/A N/A N/A x N/A N/A x sendto N/A N/A N/A x N/A N/A x sendall N/A make_val N/A udp tcp N/A N/A N/A x addr N/A N/A N/A mock call N/A N/A str encode x addr N/A N/A N/A x addr N/A N/A N/A mock call N/A N/A str encode N/A x _udp_client N/A N/A prefix addr port ipv6 N/A None None None False N/A N/A N/A addr N/A N/A addr N/A ADDR N/A 0 N/A N/A port N/A N/A port N/A ADDR N/A 1 N/A sc N/A StatsClient host addr port port prefix prefix ipv6 ipv6 N/A N/A sc _sock N/A N/A mock Mock N/A sc N/A _tcp_client N/A N/A prefix addr port timeout ipv6 N/A None None None None False N/A N/A N/A addr N/A N/A addr N/A ADDR N/A 0 N/A N/A port N/A N/A port N/A ADDR N/A 1 N/A sc N/A TCPStatsClient host addr port port prefix prefix timeout timeout ipv6 ipv6 N/A N/A sc _sock N/A N/A mock Mock N/A sc N/A _timer_check N/A N/A sock count proto start end N/A N/A N/A send N/A N/A send_method N/A proto sock N/A N/A eq_ N/A send call_count count N/A value N/A N/A N/A N/A N/A send call_args N/A 0 N/A 0 decode ascii N/A exp N/A N/A re compile N/A ^%s:\d+|%s$ N/A start end N/A N/A N/A exp match value N/A _sock_check N/A N/A sock count proto val addr N/A None None N/A N/A send N/A N/A send_method N/A proto sock N/A N/A eq_ N/A send call_count count N/A N/A addr N/A N/A addr ADDR N/A N/A val None N/A N/A N/A eq_ N/A send call_args N/A N/A make_val N/A proto val addr N/A assert_raises N/A object N/A N/A A context manager that asserts a given exception was raised.

    >>> with assert_raises(TypeError):
    ...     raise TypeError

    >>> with assert_raises(TypeError):
    ...     raise ValueError
    AssertionError: ValueError not in ['TypeError']

    >>> with assert_raises(TypeError):
    ...     pass
    AssertionError: No exception raised.

    Or you can specify any of a number of exceptions:

    >>> with assert_raises(TypeError, ValueError):
    ...     raise ValueError

    >>> with assert_raises(TypeError, ValueError):
    ...     raise KeyError
    AssertionError: KeyError not in ['TypeError', 'ValueError']

    You can also get the exception back later:

    >>> with assert_raises(TypeError) as cm:
    ...     raise TypeError('bad type!')
    >>> cm.exception
    TypeError('bad type!')
    >>> cm.exc_type
    TypeError
    >>> cm.traceback
    <traceback @ 0x3323ef0>

    Lowercase name because that it's a class is an implementation detail.

     __init__ N/A N/A self N/A exc_cls N/A N/A N/A self exc_cls exc_cls N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self typ value tb N/A N/A N/A typ No exception raised. N/A N/A typ N/A self exc_cls N/A %s not in %s N/A N/A typ __name__ N/A N/A e __name__ N/A e N/A self exc_cls N/A N/A self exc_type typ N/A N/A self exception value N/A N/A self traceback tb N/A True N/A N/A _test_incr N/A N/A cl proto N/A N/A N/A N/A N/A cl incr foo N/A N/A _sock_check N/A cl _sock 1 proto val foo:1|c N/A N/A N/A cl incr foo 10 N/A N/A _sock_check N/A cl _sock 2 proto val foo:10|c N/A N/A N/A cl incr foo 1.2 N/A N/A _sock_check N/A cl _sock 3 proto val foo:1.2|c N/A N/A N/A cl incr foo 10 rate 0.5 N/A N/A _sock_check N/A cl _sock 4 proto val foo:10|c|@0.5 N/A test_incr_udp N/A N/A N/A N/A N/A StatsClient.incr works. N/A cl N/A _udp_client N/A N/A _test_incr cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_incr_tcp N/A N/A N/A N/A N/A TCPStatsClient.incr works. N/A cl N/A _tcp_client N/A N/A _test_incr cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_decr N/A N/A cl proto N/A N/A N/A N/A N/A cl decr foo N/A N/A _sock_check N/A cl _sock 1 proto foo:-1|c N/A N/A N/A cl decr foo 10 N/A N/A _sock_check N/A cl _sock 2 proto foo:-10|c N/A N/A N/A cl decr foo 1.2 N/A N/A _sock_check N/A cl _sock 3 proto foo:-1.2|c N/A N/A N/A cl decr foo 1 rate 0.5 N/A N/A _sock_check N/A cl _sock 4 proto foo:-1|c|@0.5 N/A test_decr_udp N/A N/A N/A N/A N/A StatsClient.decr works. N/A cl N/A _udp_client N/A N/A _test_decr cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_decr_tcp N/A N/A N/A N/A N/A TCPStatsClient.decr works. N/A cl N/A _tcp_client N/A N/A _test_decr cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_gauge N/A N/A cl proto N/A N/A N/A N/A N/A cl gauge foo 30 N/A N/A _sock_check N/A cl _sock 1 proto foo:30|g N/A N/A N/A cl gauge foo 1.2 N/A N/A _sock_check N/A cl _sock 2 proto foo:1.2|g N/A N/A N/A cl gauge foo 70 rate 0.5 N/A N/A _sock_check N/A cl _sock 3 proto foo:70|g|@0.5 N/A test_gauge_udp N/A N/A N/A N/A N/A StatsClient.gauge works. N/A cl N/A _udp_client N/A N/A _test_gauge cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_gauge_tcp N/A N/A N/A N/A N/A TCPStatsClient.gauge works. N/A cl N/A _tcp_client N/A N/A _test_gauge cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_ipv6 N/A N/A cl proto addr N/A N/A N/A N/A N/A cl gauge foo 30 N/A N/A _sock_check N/A cl _sock 1 proto foo:30|g addr addr N/A test_ipv6_udp N/A N/A N/A N/A N/A StatsClient can use to IPv6 address. N/A addr N/A ::1 8125 0 0 N/A cl N/A _udp_client addr N/A addr N/A 0 ipv6 True N/A N/A _test_ipv6 cl udp addr N/A test_ipv6_tcp N/A N/A N/A N/A N/A TCPStatsClient can use to IPv6 address. N/A addr N/A ::1 8125 0 0 N/A cl N/A _tcp_client addr N/A addr N/A 0 ipv6 True N/A N/A _test_ipv6 cl tcp addr N/A _test_resolution N/A N/A cl proto addr N/A N/A N/A N/A N/A cl incr foo N/A N/A _sock_check N/A cl _sock 1 proto foo:1|c addr addr N/A test_ipv6_resolution_udp N/A N/A N/A N/A N/A cl N/A _udp_client addr localhost ipv6 True N/A N/A _test_resolution cl udp N/A ::1 8125 0 0 N/A test_ipv6_resolution_tcp N/A N/A N/A N/A N/A cl N/A _tcp_client addr localhost ipv6 True N/A N/A _test_resolution cl tcp N/A ::1 8125 0 0 N/A test_ipv4_resolution_udp N/A N/A N/A N/A N/A cl N/A _udp_client addr localhost N/A N/A _test_resolution cl udp N/A 127.0.0.1 8125 N/A test_ipv4_resolution_tcp N/A N/A N/A N/A N/A cl N/A _tcp_client addr localhost N/A N/A _test_resolution cl tcp N/A 127.0.0.1 8125 N/A _test_gauge_delta N/A N/A cl proto N/A N/A N/A tests N/A N/A 12 +12 N/A -13 -13 N/A 1.2 +1.2 N/A -1.3 -1.3 _check N/A N/A num result N/A N/A N/A N/A N/A N/A cl _sock reset_mock N/A N/A N/A cl gauge foo num delta True N/A N/A _sock_check N/A cl _sock 1 proto N/A foo:%s|g result N/A N/A N/A num result tests N/A N/A N/A _check num result N/A test_gauge_delta_udp N/A N/A N/A N/A N/A StatsClient.gauge works with delta values. N/A cl N/A _udp_client N/A N/A _test_gauge_delta cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_gauge_delta_tcp N/A N/A N/A N/A N/A TCPStatsClient.gauge works with delta values. N/A cl N/A _tcp_client N/A N/A _test_gauge_delta cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_gauge_absolute_negative N/A N/A cl proto N/A N/A N/A N/A N/A cl gauge foo -5 delta False N/A N/A _sock_check N/A cl _sock 1 foo:0|g
foo:-5|g N/A test_gauge_absolute_negative_udp N/A N/A N/A N/A N/A StatsClient.gauge works with absolute negative value. N/A cl N/A _udp_client N/A N/A _test_gauge_delta cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_gauge_absolute_negative_tcp N/A N/A N/A N/A N/A TCPStatsClient.gauge works with absolute negative value. N/A cl N/A _tcp_client N/A N/A _test_gauge_delta cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_gauge_absolute_negative_rate N/A N/A cl proto mock_random N/A N/A N/A N/A mock_random return_value -1 N/A N/A N/A cl gauge foo -1 rate 0.5 delta False N/A N/A _sock_check N/A cl _sock 1 proto foo:0|g
foo:-1|g N/A N/A mock_random return_value 2 N/A N/A N/A cl gauge foo -2 rate 0.5 delta False N/A N/A _sock_check N/A cl _sock 1 proto foo:0|g
foo:-1|g N/A test_gauge_absolute_negative_rate_udp N/A N/A mock_random N/A N/A N/A StatsClient.gauge works with absolute negative value and rate. N/A cl N/A _udp_client N/A N/A _test_gauge_absolute_negative_rate cl udp mock_random N/A N/A N/A N/A mock patch object random random test_gauge_absolute_negative_rate_tcp N/A N/A mock_random N/A N/A N/A TCPStatsClient.gauge works with absolute negative value and rate. N/A cl N/A _tcp_client N/A N/A _test_gauge_absolute_negative_rate cl tcp mock_random N/A N/A N/A N/A mock patch object random random _test_set N/A N/A cl proto N/A N/A N/A N/A N/A cl set foo 10 N/A N/A _sock_check N/A cl _sock 1 proto foo:10|s N/A N/A N/A cl set foo 2.3 N/A N/A _sock_check N/A cl _sock 2 proto foo:2.3|s N/A N/A N/A cl set foo bar N/A N/A _sock_check N/A cl _sock 3 proto foo:bar|s N/A N/A N/A cl set foo 2.3 0.5 N/A N/A _sock_check N/A cl _sock 4 proto foo:2.3|s|@0.5 N/A test_set_udp N/A N/A N/A N/A N/A StatsClient.set works. N/A cl N/A _udp_client N/A N/A _test_set cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_set_tcp N/A N/A N/A N/A N/A TCPStatsClient.set works. N/A cl N/A _tcp_client N/A N/A _test_set cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_timing N/A N/A cl proto N/A N/A N/A N/A N/A cl timing foo 100 N/A N/A _sock_check N/A cl _sock 1 proto foo:100.000000|ms N/A N/A N/A cl timing foo 350 N/A N/A _sock_check N/A cl _sock 2 proto foo:350.000000|ms N/A N/A N/A cl timing foo 100 rate 0.5 N/A N/A _sock_check N/A cl _sock 3 proto foo:100.000000|ms|@0.5 N/A test_timing_udp N/A N/A N/A N/A N/A StatsClient.timing works. N/A cl N/A _udp_client N/A N/A _test_timing cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_timing_tcp N/A N/A N/A N/A N/A TCPStatsClient.timing works. N/A cl N/A _tcp_client N/A N/A _test_timing cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_prepare N/A N/A cl proto N/A N/A N/A tests N/A N/A foo:1|c N/A foo 1|c 1 N/A bar:50|ms|@0.5 N/A bar 50|ms 0.5 N/A baz:23|g N/A baz 23|g 1 _check N/A N/A o s v r N/A N/A N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 N/A N/A N/A eq_ o N/A N/A cl _prepare s v r N/A N/A N/A o N/A s v r tests N/A N/A N/A _check o s v r N/A test_prepare_udp N/A N/A N/A N/A N/A Test StatsClient._prepare method. N/A cl N/A _udp_client N/A N/A _test_prepare cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_prepare_tcp N/A N/A N/A N/A N/A Test TCPStatsClient._prepare method. N/A cl N/A _tcp_client N/A N/A _test_prepare cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_prefix N/A N/A cl proto N/A N/A N/A N/A N/A cl incr bar N/A N/A _sock_check N/A cl _sock 1 proto foo.bar:1|c N/A test_prefix_udp N/A N/A N/A N/A N/A StatsClient.incr works. N/A cl N/A _udp_client prefix foo N/A N/A _test_prefix cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_prefix_tcp N/A N/A N/A N/A N/A TCPStatsClient.incr works. N/A cl N/A _tcp_client prefix foo N/A N/A _test_prefix cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_timer_manager N/A N/A cl proto N/A N/A N/A N/A N/A cl timer foo N/A N/A N/A N/A _timer_check N/A cl _sock 1 proto foo ms N/A test_timer_manager_udp N/A N/A N/A N/A N/A StatsClient.timer can be used as manager. N/A cl N/A _udp_client N/A N/A _test_timer_manager cl udp N/A test_timer_manager_tcp N/A N/A N/A N/A N/A TCPStatsClient.timer can be used as manager. N/A cl N/A _tcp_client N/A N/A _test_timer_manager cl tcp N/A _test_timer_decorator N/A N/A cl proto N/A N/A foo N/A N/A a b N/A N/A N/A N/A a b N/A N/A N/A cl timer foo bar N/A N/A a b N/A N/A N/A N/A b a N/A N/A N/A cl timer bar N/A N/A eq_ N/A 4 2 N/A foo 4 2 N/A N/A _timer_check N/A cl _sock 1 proto foo ms N/A N/A eq_ N/A 2 4 N/A bar 4 2 N/A N/A _timer_check N/A cl _sock 2 proto bar ms N/A N/A eq_ N/A 6 5 N/A bar 5 6 N/A N/A _timer_check N/A cl _sock 3 proto bar ms N/A test_timer_decorator_udp N/A N/A N/A N/A N/A StatsClient.timer is a thread-safe decorator (UDP). N/A cl N/A _udp_client N/A N/A _test_timer_decorator cl udp N/A test_timer_decorator_tcp N/A N/A N/A N/A N/A StatsClient.timer is a thread-safe decorator (TCP). N/A cl N/A _tcp_client N/A N/A _test_timer_decorator cl tcp N/A _test_timer_capture N/A N/A cl proto N/A N/A N/A N/A N/A cl timer woo result N/A N/A N/A eq_ N/A result ms None N/A N/A isinstance N/A result ms float N/A test_timer_capture_udp N/A N/A N/A N/A N/A You can capture the output of StatsClient.timer (UDP). N/A cl N/A _udp_client N/A N/A _test_timer_capture cl udp N/A test_timer_capture_tcp N/A N/A N/A N/A N/A You can capture the output of StatsClient.timer (TCP). N/A cl N/A _tcp_client N/A N/A _test_timer_capture cl tcp N/A _test_timer_context_rate N/A N/A cl proto N/A N/A N/A N/A N/A cl timer foo rate 0.5 N/A N/A N/A N/A _timer_check N/A cl _sock 1 proto foo ms|@0.5 N/A test_timer_context_rate_udp N/A N/A N/A N/A N/A StatsClient.timer can be used as manager with rate. N/A cl N/A _udp_client N/A N/A _test_timer_context_rate cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_timer_context_rate_tcp N/A N/A N/A N/A N/A TCPStatsClient.timer can be used as manager with rate. N/A cl N/A _tcp_client N/A N/A _test_timer_context_rate cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_timer_decorator_rate N/A N/A cl proto N/A N/A foo N/A N/A a b N/A N/A N/A N/A b a N/A N/A N/A cl timer foo rate 0.1 bar N/A N/A a b c N/A 2 3 N/A N/A N/A c b a N/A N/A N/A cl timer bar rate 0.2 N/A N/A eq_ N/A 2 4 N/A foo 4 2 N/A N/A _timer_check N/A cl _sock 1 proto foo ms|@0.1 N/A N/A eq_ N/A 3 2 5 N/A bar 5 N/A N/A _timer_check N/A cl _sock 2 proto bar ms|@0.2 N/A test_timer_decorator_rate_udp N/A N/A N/A N/A N/A StatsClient.timer can be used as decorator with rate. N/A cl N/A _udp_client N/A N/A _test_timer_decorator_rate cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_timer_decorator_rate_tcp N/A N/A N/A N/A N/A TCPStatsClient.timer can be used as decorator with rate. N/A cl N/A _tcp_client N/A N/A _test_timer_decorator_rate cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_timer_context_exceptions N/A N/A cl proto N/A N/A N/A N/A assert_raises N/A socket timeout N/A N/A N/A N/A cl timer foo N/A N/A N/A N/A socket timeout N/A N/A _timer_check N/A cl _sock 1 proto foo ms N/A test_timer_context_exceptions_udp N/A N/A N/A N/A N/A cl N/A _udp_client N/A N/A _test_timer_context_exceptions cl udp N/A test_timer_context_exceptions_tcp N/A N/A N/A N/A N/A cl N/A _tcp_client N/A N/A _test_timer_context_exceptions cl tcp N/A _test_timer_decorator_exceptions N/A N/A cl proto N/A N/A foo N/A N/A N/A N/A N/A N/A ValueError N/A N/A N/A cl timer foo N/A N/A assert_raises ValueError N/A N/A N/A foo N/A N/A _timer_check N/A cl _sock 1 proto foo ms N/A test_timer_decorator_exceptions_udp N/A N/A N/A N/A N/A cl N/A _udp_client N/A N/A _test_timer_decorator_exceptions cl udp N/A test_timer_decorator_exceptions_tcp N/A N/A N/A N/A N/A cl N/A _tcp_client N/A N/A _test_timer_decorator_exceptions cl tcp N/A _test_timer_object N/A N/A cl proto N/A N/A N/A t N/A N/A N/A N/A cl timer foo start N/A N/A N/A t stop N/A N/A _timer_check N/A cl _sock 1 proto foo ms N/A test_timer_object_udp N/A N/A N/A N/A N/A StatsClient.timer works. N/A cl N/A _udp_client N/A N/A _test_timer_object cl udp N/A test_timer_object_tcp N/A N/A N/A N/A N/A TCPStatsClient.timer works. N/A cl N/A _tcp_client N/A N/A _test_timer_object cl tcp N/A _test_timer_object_no_send N/A N/A cl proto N/A N/A N/A t N/A N/A N/A N/A cl timer foo start N/A N/A N/A t stop send False N/A N/A _sock_check N/A cl _sock 0 proto N/A N/A N/A t send N/A N/A _timer_check N/A cl _sock 1 proto foo ms N/A test_timer_object_no_send_udp N/A N/A N/A N/A N/A Stop StatsClient.timer without sending. N/A cl N/A _udp_client N/A N/A _test_timer_object_no_send cl udp N/A test_timer_object_no_send_tcp N/A N/A N/A N/A N/A Stop TCPStatsClient.timer without sending. N/A cl N/A _tcp_client N/A N/A _test_timer_object_no_send cl tcp N/A _test_timer_object_rate N/A N/A cl proto N/A N/A N/A t N/A N/A cl timer foo rate 0.5 N/A N/A N/A t start N/A N/A N/A t stop N/A N/A _timer_check N/A cl _sock 1 proto foo ms@0.5 N/A test_timer_object_rate_udp N/A N/A N/A N/A N/A StatsClient.timer works with rate. N/A cl N/A _udp_client N/A N/A _test_timer_object_rate cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 test_timer_object_rate_tcp N/A N/A N/A N/A N/A TCPStatsClient.timer works with rate. N/A cl N/A _tcp_client N/A N/A _test_timer_object_rate cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A -1 _test_timer_object_no_send_twice N/A N/A cl N/A N/A N/A t N/A N/A N/A N/A cl timer foo start N/A N/A N/A t stop N/A N/A assert_raises RuntimeError N/A N/A N/A N/A t send N/A test_timer_object_no_send_twice_udp N/A N/A N/A N/A N/A StatsClient.timer raises RuntimeError if send is called twice. N/A cl N/A _udp_client N/A N/A _test_timer_object_no_send_twice cl N/A test_timer_object_no_send_twice_tcp N/A N/A N/A N/A N/A TCPStatsClient.timer raises RuntimeError if send is called twice. N/A cl N/A _tcp_client N/A N/A _test_timer_object_no_send_twice cl N/A _test_timer_send_without_stop N/A N/A cl N/A N/A N/A N/A N/A cl timer foo t N/A N/A N/A N/A t ms None N/A N/A assert_raises RuntimeError N/A N/A N/A N/A t send N/A t N/A N/A N/A N/A cl timer bar start N/A N/A N/A t ms None N/A N/A assert_raises RuntimeError N/A N/A N/A N/A t send N/A test_timer_send_without_stop_udp N/A N/A N/A N/A N/A StatsClient.timer raises error if send is called before stop. N/A cl N/A _udp_client N/A N/A _test_timer_send_without_stop cl N/A test_timer_send_without_stop_tcp N/A N/A N/A N/A N/A TCPStatsClient.timer raises error if send is called before stop. N/A cl N/A _tcp_client N/A N/A _test_timer_send_without_stop cl N/A _test_timer_object_stop_without_start N/A N/A cl N/A N/A N/A N/A assert_raises RuntimeError N/A N/A N/A N/A N/A N/A cl timer foo stop N/A test_timer_object_stop_without_start_udp N/A N/A N/A N/A N/A StatsClient.timer raises error if stop is called before start. N/A cl N/A _udp_client N/A N/A _test_timer_object_stop_without_start cl N/A test_timer_object_stop_without_start_tcp N/A N/A N/A N/A N/A TCPStatsClient.timer raises error if stop is called before start. N/A cl N/A _tcp_client N/A N/A _test_timer_object_stop_without_start cl N/A _test_pipeline N/A N/A cl proto N/A N/A N/A pipe N/A N/A cl pipeline N/A N/A N/A pipe incr foo N/A N/A N/A pipe decr bar N/A N/A N/A pipe timing baz 320 N/A N/A N/A pipe send N/A N/A _sock_check N/A cl _sock 1 proto foo:1|c
bar:-1|c
baz:320.000000|ms N/A test_pipeline_udp N/A N/A N/A N/A N/A StatsClient.pipeline works. N/A cl N/A _udp_client N/A N/A _test_pipeline cl udp N/A test_pipeline_tcp N/A N/A N/A N/A N/A TCPStatsClient.pipeline works. N/A cl N/A _tcp_client N/A N/A _test_pipeline cl tcp N/A _test_pipeline_null N/A N/A cl proto N/A N/A N/A pipe N/A N/A cl pipeline N/A N/A N/A pipe send N/A N/A _sock_check N/A cl _sock 0 proto N/A test_pipeline_null_udp N/A N/A N/A N/A N/A Ensure we don't error on an empty pipeline (UDP). N/A cl N/A _udp_client N/A N/A _test_pipeline_null cl udp N/A test_pipeline_null_tcp N/A N/A N/A N/A N/A Ensure we don't error on an empty pipeline (TCP). N/A cl N/A _tcp_client N/A N/A _test_pipeline_null cl tcp N/A _test_pipeline_manager N/A N/A cl proto N/A N/A N/A N/A N/A cl pipeline pipe N/A N/A N/A N/A pipe incr foo N/A N/A N/A pipe decr bar N/A N/A N/A pipe gauge baz 15 N/A N/A _sock_check N/A cl _sock 1 proto foo:1|c
bar:-1|c
baz:15|g N/A test_pipeline_manager_udp N/A N/A N/A N/A N/A StatsClient.pipeline can be used as manager. N/A cl N/A _udp_client N/A N/A _test_pipeline_manager cl udp N/A test_pipeline_manager_tcp N/A N/A N/A N/A N/A TCPStatsClient.pipeline can be used as manager. N/A cl N/A _tcp_client N/A N/A _test_pipeline_manager cl tcp N/A _test_pipeline_timer_manager N/A N/A cl proto N/A N/A N/A N/A N/A cl pipeline pipe N/A N/A N/A N/A pipe timer foo N/A N/A N/A N/A _timer_check N/A cl _sock 1 proto foo ms N/A test_pipeline_timer_manager_udp N/A N/A N/A N/A N/A Timer manager can be retrieve from UDP Pipeline manager. N/A cl N/A _udp_client N/A N/A _test_pipeline_timer_manager cl udp N/A test_pipeline_timer_manager_tcp N/A N/A N/A N/A N/A Timer manager can be retrieve from TCP Pipeline manager. N/A cl N/A _tcp_client N/A N/A _test_pipeline_timer_manager cl tcp N/A _test_pipeline_timer_decorator N/A N/A cl proto N/A N/A N/A N/A N/A cl pipeline pipe N/A foo N/A N/A N/A N/A N/A N/A N/A N/A pipe timer foo N/A N/A foo N/A N/A _timer_check N/A cl _sock 1 proto foo ms N/A test_pipeline_timer_decorator_udp N/A N/A N/A N/A N/A UDP Pipeline manager can be used as decorator. N/A cl N/A _udp_client N/A N/A _test_pipeline_timer_decorator cl udp N/A test_pipeline_timer_decorator_tcp N/A N/A N/A N/A N/A TCP Pipeline manager can be used as decorator. N/A cl N/A _tcp_client N/A N/A _test_pipeline_timer_decorator cl tcp N/A _test_pipeline_timer_object N/A N/A cl proto N/A N/A N/A N/A N/A cl pipeline pipe N/A N/A t N/A N/A N/A N/A pipe timer foo start N/A N/A N/A t stop N/A N/A _sock_check N/A cl _sock 0 proto N/A N/A _timer_check N/A cl _sock 1 proto foo ms N/A test_pipeline_timer_object_udp N/A N/A N/A N/A N/A Timer from UDP Pipeline manager works. N/A cl N/A _udp_client N/A N/A _test_pipeline_timer_object cl udp N/A test_pipeline_timer_object_tcp N/A N/A N/A N/A N/A Timer from TCP Pipeline manager works. N/A cl N/A _tcp_client N/A N/A _test_pipeline_timer_object cl tcp N/A _test_pipeline_empty N/A N/A cl N/A N/A N/A N/A N/A cl pipeline pipe N/A N/A N/A N/A pipe incr foo N/A N/A eq_ 1 N/A len N/A pipe _stats N/A N/A eq_ 0 N/A len N/A pipe _stats N/A test_pipeline_empty_udp N/A N/A N/A N/A N/A Pipelines should be empty after a send() call (UDP). N/A cl N/A _udp_client N/A N/A _test_pipeline_empty cl N/A test_pipeline_empty_tcp N/A N/A N/A N/A N/A Pipelines should be empty after a send() call (TCP). N/A cl N/A _tcp_client N/A N/A _test_pipeline_empty cl N/A _test_pipeline_negative_absolute_gauge N/A N/A cl proto N/A N/A N/A N/A N/A cl pipeline pipe N/A N/A N/A N/A pipe gauge foo -10 delta False N/A N/A N/A pipe incr bar N/A N/A _sock_check N/A cl _sock 1 proto foo:0|g
foo:-10|g
bar:1|c N/A test_pipeline_negative_absolute_gauge_udp N/A N/A N/A N/A N/A Negative absolute gauges use an internal pipeline (UDP). N/A cl N/A _udp_client N/A N/A _test_pipeline_negative_absolute_gauge cl udp N/A test_pipeline_negative_absolute_gauge_tcp N/A N/A N/A N/A N/A Negative absolute gauges use an internal pipeline (TCP). N/A cl N/A _tcp_client N/A N/A _test_pipeline_negative_absolute_gauge cl tcp N/A _test_big_numbers N/A N/A cl proto N/A N/A N/A num 1234568901234 N/A tests N/A N/A gauge foo:1234568901234|g N/A incr foo:1234568901234|c N/A timing foo:1234568901234.000000|ms _check N/A N/A method result N/A N/A N/A N/A N/A N/A cl _sock reset_mock N/A N/A N/A getattr cl method foo num N/A N/A _sock_check N/A cl _sock 1 proto result N/A N/A N/A method result tests N/A N/A N/A _check method result N/A test_big_numbers_udp N/A N/A N/A N/A N/A Test big numbers with UDP client. N/A cl N/A _udp_client N/A N/A _test_big_numbers cl udp N/A test_big_numbers_tcp N/A N/A N/A N/A N/A Test big numbers with TCP client. N/A cl N/A _tcp_client N/A N/A _test_big_numbers cl tcp N/A _test_rate_no_send N/A N/A cl proto N/A N/A N/A N/A N/A cl incr foo rate 0.5 N/A N/A _sock_check N/A cl _sock 0 proto N/A test_rate_no_send_udp N/A N/A N/A N/A N/A Rate below random value prevents sending with StatsClient.incr. N/A cl N/A _udp_client N/A N/A _test_rate_no_send cl udp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A 2 test_rate_no_send_tcp N/A N/A N/A N/A N/A Rate below random value prevents sending with TCPStatsClient.incr. N/A cl N/A _tcp_client N/A N/A _test_rate_no_send cl tcp N/A N/A N/A N/A mock patch object random random N/A N/A N/A N/A 2 test_socket_error N/A N/A N/A N/A N/A Socket error on StatsClient should be ignored. N/A cl N/A _udp_client N/A N/A N/A N/A cl _sock sendto side_effect N/A N/A socket timeout N/A N/A N/A cl incr foo N/A N/A _sock_check N/A cl _sock 1 udp foo:1|c N/A test_pipeline_packet_size N/A N/A N/A N/A N/A Pipelines shouldn't send packets larger than 512 bytes (UDP only). N/A sc N/A _udp_client N/A pipe N/A N/A sc pipeline N/A x N/A range 32 N/A N/A N/A N/A pipe incr sixteen_char_str N/A N/A N/A pipe send N/A N/A eq_ 2 N/A N/A N/A sc _sock sendto call_count N/A N/A N/A len N/A N/A N/A N/A N/A N/A sc _sock sendto call_args_list N/A 0 N/A 0 N/A 0 512 N/A N/A N/A len N/A N/A N/A N/A N/A N/A sc _sock sendto call_args_list N/A 1 N/A 0 N/A 0 512 N/A test_tcp_raises_exception_to_user N/A N/A mock_socket N/A N/A N/A Socket errors in TCPStatsClient should be raised to user. N/A addr N/A 127.0.0.1 1234 N/A cl N/A _tcp_client addr N/A addr N/A 0 port N/A addr N/A 1 N/A N/A N/A cl incr foo N/A N/A eq_ 1 N/A N/A N/A cl _sock sendall call_count N/A N/A N/A N/A cl _sock sendall side_effect N/A socket error N/A N/A assert_raises N/A socket error N/A N/A N/A N/A cl incr foo N/A N/A N/A N/A mock patch object socket socket test_tcp_timeout N/A N/A mock_socket N/A N/A N/A Timeout on TCPStatsClient should be set on socket. N/A test_timeout 321 N/A cl N/A TCPStatsClient timeout test_timeout N/A N/A N/A cl incr foo N/A N/A N/A N/A N/A cl _sock settimeout assert_called_once_with test_timeout N/A N/A N/A N/A mock patch object socket socket