Module ImportFrom alias alias alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword BoolOpOr SubscriptLoad NameLoad Index Str Str keyword BoolOpOr SubscriptLoad NameLoad Index Str Str keyword SubscriptLoad NameLoad Index Str For NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Index Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call NameLoad keyword Str keyword Call AttributeLoad NameLoad attr NameLoad keyword SubscriptLoad NameLoad Index Str For NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Index Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call NameLoad keyword Str keyword Call AttributeLoad NameLoad attr NameLoad keyword SubscriptLoad NameLoad Index Str For NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Index Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call NameLoad keyword Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr NameLoad keyword BoolOpOr SubscriptLoad NameLoad Index Str Str keyword BoolOpOr SubscriptLoad NameLoad Index Str Str keyword BoolOpOr Call AttributeLoad NameLoad attr Str Str keyword BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword BoolOpOr SubscriptLoad NameLoad Index Str Str keyword BoolOpOr SubscriptLoad NameLoad Index Str Str For NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Index Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad ListLoad Str Str body Return Str orelse If CompareEq NameLoad Str body Return Str orelse If CompareEq NameLoad Str body Return Str orelse If CompareEq NameLoad Str body Return Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Num Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list AttributeLoad AttributeLoad NameLoad attr attr decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Num keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Num keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call NameLoad keyword NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore Call NameLoad Call NameLoad keyword BinOpMod Str NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Str Str CompareEq Call AttributeLoad NameLoad attr Str Str body Continue Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Str Str CompareEq Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr CompareIs NameLoad NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad SubscriptLoad NameLoad Index Str With Call NameLoad SubscriptLoad NameLoad Index Str Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Call NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore Call NameLoad Call NameLoad keyword BinOpMod Str NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call NameLoad keyword NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call NameLoad keyword NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str decorator_list decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad Str Str Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Num keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Str Str CompareEq Call AttributeLoad NameLoad attr Str Str body Continue Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str With Call NameLoad SubscriptLoad NameLoad Index Str Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call NameLoad keyword NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A __future__ absolute_import division with_statement N/A logging N/A os.path N/A time N/A tornado.escape N/A tornado.gen N/A tornado.ioloop N/A tornado.web tornado.test.util unittest tornado.testing AsyncHTTPTestCase pilbox errors pilbox.app PilboxApplication pilbox.signature sign pilbox.test image_test N/A N/A urllib urlencode N/A N/A N/A ImportError N/A urllib.parse urlencode N/A N/A N/A cv N/A N/A N/A ImportError N/A N/A cv None N/A N/A N/A pycurl N/A N/A N/A ImportError N/A N/A pycurl None N/A logger N/A N/A logging getLogger tornado.application _AppAsyncMixin N/A object N/A fetch_error N/A N/A self code N/A args kwargs N/A N/A response N/A N/A self fetch args kwargs N/A N/A N/A self assertEqual N/A response code code N/A N/A N/A self assertEqual N/A N/A N/A response headers get Content-Type None application/json N/A N/A N/A N/A tornado escape json_decode N/A response body N/A fetch_success N/A N/A self N/A args kwargs N/A N/A response N/A N/A self fetch args kwargs N/A N/A N/A self assertEqual N/A response code 200 N/A response N/A get_image_resize_cases N/A N/A self N/A N/A N/A cases N/A N/A image_test get_image_resize_cases N/A m N/A dict background bg filter filter format fmt optimize opt position pos progressive prog quality q retain retain N/A N/A i case N/A enumerate cases N/A N/A path N/A /test/data/%s N/A N/A N/A os path basename N/A case N/A source_path N/A N/A N/A cases N/A i N/A source_query_params N/A dict url N/A N/A self get_url path w N/A N/A case N/A width h N/A N/A case N/A height mode N/A case N/A mode N/A k N/A N/A m keys N/A N/A N/A k case N/A N/A N/A N/A N/A cases N/A i N/A source_query_params N/A N/A N/A m get k N/A case N/A k N/A N/A N/A cases N/A i N/A content_type N/A N/A self _format_to_content_type N/A N/A case get format N/A cases N/A get_image_rotate_cases N/A N/A self N/A N/A N/A cases N/A N/A image_test get_image_rotate_cases N/A m N/A dict expand expand format fmt optimize opt quality q N/A N/A i case N/A enumerate cases N/A N/A path N/A /test/data/%s N/A N/A N/A os path basename N/A case N/A source_path N/A N/A N/A cases N/A i N/A source_query_params N/A dict op rotate url N/A N/A self get_url path deg N/A case N/A degree N/A k N/A N/A m keys N/A N/A N/A k case N/A N/A N/A N/A N/A cases N/A i N/A source_query_params N/A N/A N/A m get k N/A case N/A k N/A N/A N/A cases N/A i N/A content_type N/A N/A self _format_to_content_type N/A N/A case get format N/A cases N/A get_image_region_cases N/A N/A self N/A N/A N/A cases N/A N/A image_test get_image_region_cases N/A m N/A dict expand expand format fmt optimize opt quality q N/A N/A i case N/A enumerate cases N/A N/A path N/A /test/data/%s N/A N/A N/A os path basename N/A case N/A source_path N/A N/A N/A cases N/A i N/A source_query_params N/A dict op region url N/A N/A self get_url path rect N/A case N/A rect N/A k N/A N/A m keys N/A N/A N/A k case N/A N/A N/A N/A N/A cases N/A i N/A source_query_params N/A N/A N/A m get k N/A case N/A k N/A N/A N/A cases N/A i N/A content_type N/A N/A self _format_to_content_type N/A N/A case get format N/A cases N/A get_image_chained_cases N/A N/A self N/A N/A N/A cases N/A N/A image_test get_image_chained_cases N/A N/A i case N/A enumerate cases N/A N/A path N/A /test/data/%s N/A N/A N/A os path basename N/A case N/A source_path N/A N/A N/A cases N/A i N/A source_query_params N/A dict op N/A N/A , join N/A case N/A operation url N/A N/A self get_url path w N/A N/A case N/A width h N/A N/A case N/A height deg N/A N/A N/A case get degree rect N/A N/A N/A case get rect N/A N/A N/A cases N/A i N/A content_type N/A N/A self _format_to_content_type N/A N/A case get format N/A cases N/A get_image_exif_cases N/A N/A self N/A N/A N/A cases N/A N/A image_test get_image_exif_cases N/A m N/A dict preserve_exif exif N/A N/A i case N/A enumerate cases N/A N/A path N/A /test/data/%s N/A N/A N/A os path basename N/A case N/A source_path N/A N/A N/A cases N/A i N/A source_query_params N/A dict url N/A N/A self get_url path w N/A N/A case N/A width h N/A N/A case N/A height N/A k N/A N/A m keys N/A N/A N/A k case N/A N/A N/A N/A N/A cases N/A i N/A source_query_params N/A N/A N/A m get k N/A case N/A k N/A N/A N/A cases N/A i N/A content_type N/A N/A self _format_to_content_type N/A N/A case get format N/A cases N/A _format_to_content_type N/A N/A self fmt N/A N/A N/A N/A fmt N/A jpeg jpg N/A N/A image/jpeg N/A N/A N/A fmt png N/A N/A image/png N/A N/A N/A fmt webp N/A N/A image/webp N/A N/A N/A fmt gif N/A N/A image/gif N/A None N/A N/A _PilboxTestApplication N/A PilboxApplication N/A get_handlers N/A N/A self N/A N/A N/A path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ data N/A handlers N/A N/A /test/data/test-delayed.jpg _DelayedHandler N/A /test/data/(.*) N/A N/A tornado web StaticFileHandler N/A path path N/A N/A N/A handlers extend N/A N/A N/A super _PilboxTestApplication self get_handlers N/A handlers N/A N/A _DelayedHandler N/A N/A N/A tornado web RequestHandler N/A get N/A N/A self N/A N/A N/A delay N/A N/A N/A time time N/A float N/A N/A self get_argument delay 0.0 N/A N/A N/A N/A N/A tornado gen Task N/A N/A N/A N/A N/A tornado ioloop IOLoop instance add_timeout delay N/A N/A N/A self finish N/A N/A N/A tornado web asynchronous N/A AppTest N/A AsyncHTTPTestCase _AppAsyncMixin N/A get_app N/A N/A self N/A N/A N/A N/A _PilboxTestApplication timeout 10.0 N/A test_missing_url N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict w 1 h 1 N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors UrlError get_code N/A test_invalid_operation N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg op a N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors OperationError get_code N/A test_missing_dimensions N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors DimensionsError get_code N/A test_invalid_width N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w a h 1 N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors DimensionsError get_code N/A test_invalid_height N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w 1 h a N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors DimensionsError get_code N/A test_invalid_degree N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg op rotate deg a N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors DegreeError get_code N/A test_invalid_rectangle N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg op region rect a N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors RectangleError get_code N/A test_invalid_mode N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w 1 h 1 mode foo N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors ModeError get_code N/A test_invalid_hexadecimal_background N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w 1 h 1 mode fill bg r N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors BackgroundError get_code N/A test_invalid_long_background N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w 1 h 1 mode fill bg 0f0f0f0f0 N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors BackgroundError get_code N/A test_invalid_position N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w 1 h 1 pos foo N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors PositionError get_code N/A test_invalid_position_ratio N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w 1 h 1 pos 1.2,5.6 N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors PositionError get_code N/A test_invalid_filter N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w 1 h 1 filter bar N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors FilterError get_code N/A test_invalid_format N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w 1 h 1 fmt foo N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors FormatError get_code N/A test_invalid_optimize N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w 1 h 1 opt a N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors OptimizeError get_code N/A test_invalid_integer_quality N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w 1 h 1 q a N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors QualityError get_code N/A test_outofbounds_quality N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg w 1 h 1 q 200 N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors QualityError get_code N/A test_nonimage_file N/A N/A self N/A N/A N/A path /test/data/test-nonimage.txt N/A qs N/A urlencode N/A dict url N/A N/A self get_url path w 1 h 1 N/A resp N/A N/A self fetch_error 415 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors ImageFormatError get_code N/A test_unsupported_image_format N/A N/A self N/A N/A N/A path /test/data/test-bad-format.ico N/A qs N/A urlencode N/A dict url N/A N/A self get_url path w 1 h 1 N/A resp N/A N/A self fetch_error 415 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors ImageFormatError get_code N/A test_retain_incorrect_format N/A N/A self N/A N/A N/A url N/A N/A self get_url /test/data/test-incorrect-format.png N/A qs N/A urlencode N/A dict url url w 1 h 1 N/A resp N/A N/A self fetch_success N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A N/A resp headers get Content-Type None image/png N/A test_not_found N/A N/A self N/A N/A N/A path /test/data/test-not-found.jpg N/A qs N/A urlencode N/A dict url N/A N/A self get_url path w 1 h 1 N/A resp N/A N/A self fetch_error 404 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors FetchError get_code N/A test_not_connect N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://a.com/a.jpg w 1 h 1 N/A resp N/A N/A self fetch_error 404 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors FetchError get_code N/A test_invalid_protocol N/A N/A self N/A N/A N/A path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ data test1.jpg N/A qs N/A urlencode N/A dict url N/A file://%s path w 1 h 1 N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors UrlError get_code N/A test_valid_noop N/A N/A self N/A N/A N/A url N/A N/A self get_url /test/data/test1.jpg N/A qs N/A urlencode N/A dict url url op noop N/A resp N/A N/A self fetch_success N/A /?%s qs N/A expected_path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ data test1.jpg N/A msg N/A /?%s does not match %s N/A qs expected_path N/A N/A open expected_path rb expected N/A N/A N/A N/A self assertEqual N/A N/A N/A resp buffer read N/A N/A expected read msg N/A test_valid_resize N/A N/A self N/A N/A N/A cases N/A N/A self get_image_resize_cases N/A case cases N/A N/A N/A N/A N/A N/A case get mode crop N/A N/A N/A case get position face N/A N/A N/A N/A N/A self _assert_expected_case case N/A test_valid_rotate N/A N/A self N/A N/A N/A cases N/A N/A self get_image_rotate_cases N/A case cases N/A N/A N/A N/A self _assert_expected_case case N/A test_valid_region N/A N/A self N/A N/A N/A cases N/A N/A self get_image_region_cases N/A case cases N/A N/A N/A N/A self _assert_expected_case case N/A test_valid_chained N/A N/A self N/A N/A N/A cases N/A N/A self get_image_chained_cases N/A case cases N/A N/A N/A N/A self _assert_expected_case case N/A test_valid_exif N/A N/A self N/A N/A N/A cases N/A N/A self get_image_exif_cases N/A case cases N/A N/A N/A N/A self _assert_expected_case case N/A test_valid_face N/A N/A self N/A N/A N/A cases N/A N/A self get_image_resize_cases N/A case cases N/A N/A N/A N/A N/A N/A case get mode crop N/A N/A N/A case get position face N/A N/A N/A N/A self _assert_expected_case case N/A N/A N/A unittest skipIf N/A cv None OpenCV is not installed _assert_expected_case N/A N/A self case N/A N/A N/A qs N/A urlencode N/A case N/A source_query_params N/A resp N/A N/A self fetch_success N/A /?%s qs N/A msg N/A /?%s does not match %s N/A qs N/A case N/A expected_path N/A N/A case N/A content_type N/A N/A N/A N/A self assertEqual N/A N/A N/A resp headers get Content-Type None N/A case N/A content_type N/A N/A open N/A case N/A expected_path rb expected N/A N/A N/A N/A self assertEqual N/A N/A N/A resp buffer read N/A N/A expected read msg N/A N/A AppImplicitBaseUrlTest N/A AsyncHTTPTestCase _AppAsyncMixin N/A get_app N/A N/A self N/A N/A N/A N/A _PilboxTestApplication implicit_base_url N/A N/A self get_url / N/A test_missing_url N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict w 1 h 1 N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors UrlError get_code N/A test_url N/A N/A self N/A N/A N/A url N/A N/A self get_url /test/data/test1.jpg N/A qs N/A urlencode N/A dict url url op noop N/A resp N/A N/A self fetch_success N/A /?%s qs N/A expected_path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ data test1.jpg N/A msg N/A /?%s does not match %s N/A qs expected_path N/A N/A open expected_path rb expected N/A N/A N/A N/A self assertEqual N/A N/A N/A resp buffer read N/A N/A expected read msg N/A test_path N/A N/A self N/A N/A N/A url_path /test/data/test1.jpg N/A qs N/A urlencode N/A dict url url_path op noop N/A resp N/A N/A self fetch_success N/A /?%s qs N/A expected_path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ data test1.jpg N/A msg N/A /?%s does not match %s N/A qs expected_path N/A N/A open expected_path rb expected N/A N/A N/A N/A self assertEqual N/A N/A N/A resp buffer read N/A N/A expected read msg N/A test_invalid_protocol N/A N/A self N/A N/A N/A path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ data test1.jpg N/A qs N/A urlencode N/A dict url N/A file://%s path w 1 h 1 N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors UrlError get_code N/A N/A AppAllowedOperationsTest N/A AsyncHTTPTestCase _AppAsyncMixin N/A get_app N/A N/A self N/A N/A N/A N/A _PilboxTestApplication allowed_operations N/A noop N/A test_invalid_operation N/A N/A self N/A N/A N/A qs N/A urlencode N/A dict url http://foo.co/x.jpg op resize N/A resp N/A N/A self fetch_error 400 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors OperationError get_code N/A test_valid_noop N/A N/A self N/A N/A N/A url N/A N/A self get_url /test/data/test1.jpg N/A qs N/A urlencode N/A dict url url op noop N/A resp N/A N/A self fetch_success N/A /?%s qs N/A expected_path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ data test1.jpg N/A msg N/A /?%s does not match %s N/A qs expected_path N/A N/A open expected_path rb expected N/A N/A N/A N/A self assertEqual N/A N/A N/A resp buffer read N/A N/A expected read msg N/A N/A AppDefaultOperationTest N/A AsyncHTTPTestCase _AppAsyncMixin N/A get_app N/A N/A self N/A N/A N/A N/A _PilboxTestApplication operation noop N/A test_valid_default_operation N/A N/A self N/A N/A N/A url N/A N/A self get_url /test/data/test1.jpg N/A qs N/A urlencode N/A dict url url N/A resp N/A N/A self fetch_success N/A /?%s qs N/A expected_path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ data test1.jpg N/A msg N/A /?%s does not match %s N/A qs expected_path N/A N/A open expected_path rb expected N/A N/A N/A N/A self assertEqual N/A N/A N/A resp buffer read N/A N/A expected read msg N/A N/A AppOverrideContentTypeTest N/A AsyncHTTPTestCase _AppAsyncMixin N/A get_app N/A N/A self N/A N/A N/A N/A _PilboxTestApplication content_type_from_image True N/A test_override_unknown_format N/A N/A self N/A N/A N/A url N/A N/A self get_url /test/data/test-unknown-format N/A qs N/A urlencode N/A dict url url w 1 h 1 N/A resp N/A N/A self fetch_success N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A N/A resp headers get Content-Type None image/jpeg N/A test_override_incorrect_format N/A N/A self N/A N/A N/A url N/A N/A self get_url /test/data/test-incorrect-format.png N/A qs N/A urlencode N/A dict url url w 1 h 1 N/A resp N/A N/A self fetch_success N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A N/A resp headers get Content-Type None image/jpeg N/A N/A AppRestrictedTest N/A AsyncHTTPTestCase _AppAsyncMixin N/A N/A KEY abcdef N/A NAME abc get_app N/A N/A self N/A N/A N/A N/A _PilboxTestApplication client_name N/A self NAME client_key N/A self KEY allowed_hosts N/A foo.co bar.io localhost timeout 10.0 N/A test_missing_client_name N/A N/A self N/A N/A N/A params N/A dict url http://foo.co/x.jpg w 1 h 1 N/A qs N/A sign N/A self KEY N/A urlencode params N/A resp N/A N/A self fetch_error 403 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors ClientError get_code N/A test_bad_client_name N/A N/A self N/A N/A N/A params N/A dict url http://foo.co/x.jpg w 1 h 1 client 123 N/A qs N/A sign N/A self KEY N/A urlencode params N/A resp N/A N/A self fetch_error 403 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors ClientError get_code N/A test_missing_signature N/A N/A self N/A N/A N/A params N/A dict url http://foo.co/x.jpg w 1 h 1 client N/A self NAME N/A qs N/A urlencode params N/A resp N/A N/A self fetch_error 403 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors SignatureError get_code N/A test_bad_signature N/A N/A self N/A N/A N/A params N/A dict url http://foo.co/x.jpg w 1 h 1 client N/A self NAME sig abc123 N/A qs N/A urlencode params N/A resp N/A N/A self fetch_error 403 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors SignatureError get_code N/A test_bad_host N/A N/A self N/A N/A N/A params N/A dict url http://bar.co/x.jpg w 1 h 1 client N/A self NAME N/A qs N/A sign N/A self KEY N/A urlencode params N/A resp N/A N/A self fetch_error 403 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors HostError get_code N/A test_valid N/A N/A self N/A N/A N/A cases N/A N/A self get_image_resize_cases N/A case cases N/A N/A N/A N/A N/A N/A case get mode crop N/A N/A N/A case get position face N/A N/A N/A params N/A case N/A source_query_params N/A N/A params N/A client N/A self NAME N/A qs N/A sign N/A self KEY N/A urlencode params N/A resp N/A N/A self fetch_success N/A /?%s qs N/A msg N/A /?%s does not match %s N/A qs N/A case N/A expected_path N/A N/A open N/A case N/A expected_path rb expected N/A N/A N/A N/A self assertEqual N/A N/A N/A resp buffer read N/A N/A expected read msg N/A N/A AppSlowTest N/A AsyncHTTPTestCase _AppAsyncMixin N/A get_app N/A N/A self N/A N/A N/A N/A _PilboxTestApplication timeout 0.5 N/A test_timeout N/A N/A self N/A N/A N/A url N/A N/A self get_url /test/data/test-delayed.jpg?delay=1.0 N/A qs N/A urlencode N/A dict url url w 1 h 1 N/A resp N/A N/A self fetch_error 404 N/A /?%s qs N/A N/A N/A self assertEqual N/A N/A resp get error_code N/A N/A N/A errors FetchError get_code N/A N/A