Module Import alias ImportFrom alias alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad Str decorator_list decorator_list Assign NameStore Call NameLoad keyword Dict Str Str keyword Str Assign NameStore Call NameLoad keyword ListLoad Str Assign NameStore Call Call NameLoad Dict Str Str NameLoad Expr Call NameLoad NameLoad NameLoad Assert AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str ListLoad NameLoad ListLoad NameLoad Assign AttributeStore NameLoad attr Dict Str ListLoad NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad Str decorator_list Call NameLoad keyword NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword ListLoad Str Assign NameStore Call Call NameLoad Dict Str Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Dict Str ListLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad keyword NameLoad ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str ListLoad NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword ListLoad Str Assign NameStore Call Call NameLoad Dict Str Str NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad keyword NameLoad ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str ListLoad NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword ListLoad Str Assign NameStore Call Call NameLoad Dict Str Str NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword Str keyword Str keyword ListLoad Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Pass decorator_list decorator_list Assign NameStore Call NameLoad keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareEq Str Call AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Num Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad ListLoad Str Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Dict Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Dict Str Dict Str Str Dict Str Num Num Assert CompareNotIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Assert CompareEq NameLoad Dict Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Dict Str Str Str Str keyword Str keyword ListLoad Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign NameStore Call NameLoad keyword Dict Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Dict Str Str Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Dict Str Str Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str Assert CompareEq AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Dict Str Str Assert CompareEq AttributeLoad NameLoad attr Dict Assert CompareEq AttributeLoad NameLoad attr Dict decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Dict Str Str Str Str keyword Str keyword ListLoad Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Expr Call NameLoad keyword Dict Str Str keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Dict Str Str Str Str keyword Str keyword ListLoad Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign NameStore Call NameLoad keyword Dict Str Str keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Import alias Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str Assign AttributeStore Call NameLoad NameLoad attr Call NameLoad keyword Call AttributeLoad NameLoad attr Str Str keyword Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign NameStore Call NameLoad keyword Dict Str Str keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Dict Str Str Str Str keyword Str keyword ListLoad Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Expr Call NameLoad keyword Dict Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad Str Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign AttributeStore Call NameLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad Call NameLoad attr attr Num Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad Call NameLoad attr attr keyword Str keyword Str Assert CompareEq NameLoad Call AttributeLoad Call NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Str NameLoad Num NameLoad Assign AttributeStore NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str keyword Str Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str keyword Dict Str Str Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list Call NameLoad Str Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str keyword Dict Str Str Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list Call NameLoad Str Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assert CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assert CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assert CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assert CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assert CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assert UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam defaults body ImportFrom alias Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults vararg body Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args defaults vararg body Return SubscriptLoad NameLoad Index Num decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return ListLoad Num Num Num decorator_list Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Pass decorator_list decorator_list Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword ListLoad Str Assign NameStore Call NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assert CompareEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign NameStore Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad Assert CompareIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign NameStore Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad Assert CompareIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Assign NameStore Lambda arguments args NameParam defaults NameLoad Assign NameStore Lambda arguments args NameParam defaults BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad Assert CompareIs NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Num keyword NameLoad Assert CompareIs NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Assert CompareIs NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad keyword NameLoad Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str keyword NameLoad keyword ListLoad Str Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Dict Str Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str decorator_list Call NameLoad Str Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword ListLoad Str keyword NameLoad keyword ListLoad Str Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Dict Str Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword ListLoad Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str decorator_list Call NameLoad Str Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str keyword Dict Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str keyword Dict Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str keyword Dict Str Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assert UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr Assert UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str keyword Dict Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Num Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str keyword Dict Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad NameLoad Str Assert CompareIs SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str keyword Dict Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Num Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assert UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Dict keyword NameLoad keyword Dict Str Str keyword Dict Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword TupleLoad Str NameLoad Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword TupleLoad Str NameLoad Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword TupleLoad Str NameLoad Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Assign NameStore ListLoad Call NameLoad NameLoad keyword NameLoad Call NameLoad NameLoad keyword NameLoad Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list decorator_list
N/A N/A pytest mock Mock MagicMock patch call PropertyMock nefertari.view BaseView error_view key_error_view value_error_view nefertari.utils dictset nefertari.json_httpexceptions JHTTPBadRequest JHTTPNotFound JHTTPMethodNotAllowed nefertari.wrappers wrap_me ValidationError ResourceNotFound nefertari.renderers _JSONEncoder DummyBaseView N/A BaseView N/A N/A _json_encoder _JSONEncoder N/A TestViewMapper N/A object N/A test_trigger_events_called N/A N/A self mock_manager N/A N/A nefertari.view ViewMapper MyView N/A object N/A N/A Model Mock __init__ N/A N/A self ctx req N/A N/A N/A N/A self _before_calls N/A N/A N/A self _after_calls N/A N/A N/A self _json_params N/A N/A N/A self context foo N/A index N/A N/A self N/A N/A N/A N/A thing N/A N/A N/A request N/A MagicMock json N/A username admin body {"username":"admin"} N/A resource N/A MagicMock actions N/A index N/A wrapper N/A N/A ViewMapper N/A attr index MyView N/A N/A wrapper resource request N/A N/A mock_manager called N/A N/A patch nefertari.view.trigger_events test_viewmapper N/A N/A self N/A N/A nefertari.view ViewMapper N/A bc1 N/A Mock N/A bc3 N/A Mock N/A bc2 N/A Mock MyView N/A object N/A N/A Model Mock N/A _response None __init__ N/A N/A self ctx req N/A N/A N/A N/A self _before_calls N/A index show N/A bc1 N/A bc3 N/A N/A self _after_calls N/A show N/A bc2 N/A N/A self _json_params N/A N/A N/A self context foo N/A N/A self request N/A Mock action index N/A index N/A N/A self N/A N/A N/A N/A thing N/A N/A wrap_me before bc2 N/A N/A request N/A MagicMock N/A resource N/A MagicMock actions N/A index N/A wrapper N/A N/A ViewMapper N/A attr index MyView N/A result N/A wrapper resource request N/A N/A N/A request filters N/A show N/A bc2 N/A N/A N/A request action index N/A N/A result N/A thing N/A N/A N/A bc1 assert_called_with request request N/A N/A N/A bc2 called N/A N/A N/A bc3 called N/A test_viewmapper_bad_request N/A N/A self N/A N/A nefertari.view ViewMapper N/A bc1 N/A Mock side_effect ValidationError MyView N/A object N/A N/A Model Mock __init__ N/A N/A self ctx req N/A N/A N/A N/A self _before_calls N/A index N/A bc1 N/A N/A self _after_calls N/A N/A index N/A N/A self N/A N/A N/A N/A thing N/A N/A N/A request N/A Mock N/A resource N/A Mock actions N/A index N/A wrapper N/A N/A ViewMapper N/A attr index MyView N/A N/A N/A pytest raises JHTTPBadRequest N/A N/A N/A wrapper resource request N/A test_viewmapper_not_found N/A N/A self N/A N/A nefertari.view ViewMapper N/A bc1 N/A Mock side_effect ResourceNotFound MyView N/A object N/A N/A Model foo __init__ N/A N/A self ctx req N/A N/A N/A N/A self _before_calls N/A index N/A bc1 N/A N/A self _after_calls N/A N/A N/A self _json_params N/A N/A N/A self context foo N/A N/A self request N/A Mock action index N/A index N/A N/A self N/A N/A N/A N/A thing N/A N/A N/A request N/A Mock N/A resource N/A Mock actions N/A index N/A wrapper N/A N/A ViewMapper N/A attr index MyView N/A N/A N/A pytest raises JHTTPNotFound N/A N/A N/A wrapper resource request N/A N/A TestBaseView N/A object N/A get_common_mock_request N/A N/A self N/A N/A N/A N/A Mock content_type method accept N/A user None N/A test_baseview N/A N/A self N/A a N/A UsersView N/A BaseView N/A N/A _json_encoder _JSONEncoder __init__ N/A N/A self context request N/A N/A N/A N/A N/A BaseView __init__ self context request N/A N/A self _json_params N/A N/A N/A self context foo N/A N/A self request N/A Mock action index N/A show N/A N/A self id N/A N/A N/A John Doe N/A convert_ids2objects N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A request N/A MagicMock content_type N/A N/A N/A request matched_route pattern /users N/A view N/A UsersView N/A request context request N/A N/A John Doe N/A N/A view show 1 N/A N/A N/A pytest raises JHTTPMethodNotAllowed N/A N/A N/A N/A view index N/A N/A N/A pytest raises AttributeError N/A N/A N/A N/A view frobnicate N/A N/A N/A pytest raises JHTTPMethodNotAllowed N/A N/A N/A N/A view delete N/A test_convert_dotted N/A N/A self N/A N/A N/A converted N/A N/A BaseView convert_dotted N/A settings.foo option one.two.three.four one.two.six bar value 4 6 N/A N/A N/A sorted N/A N/A converted keys N/A sorted N/A settings option one N/A N/A N/A converted N/A settings N/A foo bar N/A N/A N/A converted N/A option value N/A N/A N/A converted N/A one N/A two N/A three six N/A four 4 6 N/A N/A settings.foo converted N/A test_convert_dotted_no_dotted N/A N/A self N/A N/A N/A converted N/A N/A BaseView convert_dotted N/A option value N/A N/A converted N/A option value N/A test_init N/A N/A self run N/A N/A N/A request N/A Mock content_type application/json json N/A param1.foo param3 val1 val3 method POST accept N/A N/A N/A N/A N/A request params mixed return_value N/A param2.foo val2 N/A view N/A DummyBaseView context N/A foo bar request request N/A N/A N/A run assert_called_once_with N/A N/A N/A request override_renderer nefertari_json N/A N/A N/A list N/A sorted N/A N/A N/A view _params keys N/A param1 param2 param3 N/A N/A N/A N/A view _params N/A param1 N/A foo val1 N/A N/A N/A N/A view _params N/A param2 N/A foo val2 N/A N/A N/A N/A view _params N/A param3 val3 N/A N/A N/A view request request N/A N/A N/A view context N/A foo bar N/A N/A N/A view _before_calls N/A N/A N/A N/A view _after_calls N/A N/A N/A patch nefertari.view.BaseView._run_init_actions test_init_json_accept_header N/A N/A self run N/A N/A N/A request N/A Mock content_type application/json json N/A param1.foo param3 val1 val3 method POST accept N/A application/json N/A N/A N/A N/A request params mixed return_value N/A param2.foo val2 N/A N/A DummyBaseView context N/A foo bar request request N/A N/A N/A request override_renderer nefertari_json N/A N/A patch nefertari.view.BaseView._run_init_actions test_init_text_ct_and_accept N/A N/A self run N/A N/A N/A request N/A Mock content_type text/plain json N/A param1.foo param3 val1 val3 method POST accept N/A text/plain N/A N/A N/A N/A request params mixed return_value N/A param2.foo val2 N/A view N/A DummyBaseView context N/A foo bar request request N/A N/A N/A request override_renderer string N/A N/A N/A list N/A N/A N/A view _params keys N/A param2 N/A N/A patch nefertari.view.BaseView._run_init_actions test_init_json_error N/A N/A self run N/A N/A N/A simplejson N/A request N/A Mock content_type application/json method POST accept N/A application/json N/A N/A N/A type request json N/A PropertyMock side_effect N/A N/A simplejson JSONDecodeError foo asdasdasdasd pos 1 N/A N/A N/A N/A request params mixed return_value N/A param2.foo val2 N/A view N/A DummyBaseView context N/A foo bar request request N/A N/A N/A request override_renderer nefertari_json N/A N/A N/A list N/A N/A N/A view _params keys N/A param2 N/A N/A patch nefertari.view.BaseView._run_init_actions test_run_init_actions N/A N/A self limit conv setpub N/A N/A N/A request N/A Mock content_type text/plain json N/A param1.foo param3 val1 val3 method POST accept N/A text/plain N/A N/A N/A N/A request params mixed return_value N/A param2.foo val2 N/A N/A DummyBaseView context N/A foo bar request request N/A N/A N/A limit assert_called_once_with N/A N/A N/A conv assert_called_once_with N/A N/A N/A setpub assert_called_once_with N/A N/A patch nefertari.view.BaseView.setup_default_wrappers N/A patch nefertari.view.BaseView.convert_ids2objects N/A patch nefertari.view.BaseView.set_public_limits test_setup_aggregation_es_disabled N/A N/A self aggregator mock_es N/A N/A N/A N/A mock_es settings N/A dictset enable_aggregations False N/A request N/A Mock content_type method accept N/A N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A N/A view index 1 N/A N/A N/A view _setup_aggregation N/A N/A N/A view index 1 N/A N/A patch nefertari.elasticsearch.ES N/A patch nefertari.view.ESAggregator test_setup_aggregation_index_not_defined N/A N/A self aggregator mock_es N/A N/A N/A N/A mock_es settings N/A dictset enable_aggregations True N/A request N/A Mock content_type method accept N/A N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A N/A N/A view index N/A view not_allowed_action N/A N/A N/A view _setup_aggregation N/A N/A N/A pytest raises JHTTPMethodNotAllowed N/A N/A N/A N/A view index N/A N/A patch nefertari.elasticsearch.ES N/A patch nefertari.view.ESAggregator test_setup_aggregation N/A N/A self aggregator mock_es N/A N/A N/A N/A mock_es settings N/A dictset enable_aggregations True N/A request N/A Mock content_type method accept N/A N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A N/A N/A type view index 1 N/A N/A N/A view _setup_aggregation N/A N/A N/A aggregator assert_called_once_with view N/A N/A N/A N/A N/A aggregator wrap assert_called_once_with 1 N/A N/A N/A view index N/A N/A N/A aggregator wrap N/A N/A patch nefertari.elasticsearch.ES N/A patch nefertari.view.ESAggregator test_get_collection_es N/A N/A self mock_es N/A N/A N/A request N/A Mock content_type method accept N/A N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A N/A view Model N/A Mock __name__ MyModel N/A N/A N/A view _query_params N/A q movies N/A result N/A N/A view get_collection_es N/A N/A N/A mock_es assert_called_once_with MyModel N/A N/A N/A N/A N/A mock_es get_collection assert_called_once_with foo bar q movies N/A N/A result N/A N/A N/A mock_es get_collection N/A N/A patch nefertari.elasticsearch.ES test_fill_null_values N/A N/A self run N/A N/A N/A request N/A Mock content_type method accept N/A N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A N/A view Model N/A Mock N/A N/A N/A N/A view Model get_null_values return_value N/A name email foo None 1 None N/A N/A view _json_params N/A foo bar N/A N/A N/A view fill_null_values N/A N/A N/A view _json_params N/A foo name email bar None 1 N/A N/A patch nefertari.view.BaseView._run_init_actions test_init_no_root N/A N/A self run N/A N/A N/A request N/A Mock content_type method accept N/A N/A kwargs N/A dict context N/A request request _query_params N/A foo bar N/A view N/A DummyBaseView kwargs N/A N/A view root_resource None N/A N/A N/A view __init__ kwargs N/A N/A N/A view _auth_enabled N/A N/A patch nefertari.view.BaseView._run_init_actions test_set_public_limits_no_auth N/A N/A self run wrap N/A N/A N/A request N/A Mock content_type method accept N/A N/A kwargs N/A dict context N/A request request _query_params N/A foo bar N/A view N/A DummyBaseView kwargs N/A N/A view _auth_enabled False N/A N/A N/A view set_public_limits N/A N/A N/A N/A wrap set_public_limits called N/A N/A patch nefertari.view.wrappers N/A patch nefertari.view.BaseView._run_init_actions test_set_public_limits_user_authenticated N/A N/A self run wrap N/A N/A N/A request N/A Mock content_type method accept N/A user foo N/A kwargs N/A dict context N/A request request _query_params N/A foo bar N/A view N/A DummyBaseView kwargs N/A N/A view _auth_enabled True N/A N/A N/A view set_public_limits N/A N/A N/A N/A wrap set_public_limits called N/A N/A patch nefertari.view.wrappers N/A patch nefertari.view.BaseView._run_init_actions test_set_public_limits_applied N/A N/A self run wrap N/A N/A N/A request N/A N/A self get_common_mock_request N/A kwargs N/A dict context N/A request request _query_params N/A foo bar N/A view N/A DummyBaseView kwargs N/A N/A view _auth_enabled True N/A N/A N/A view set_public_limits N/A N/A N/A N/A wrap set_public_limits assert_called_once_with view N/A N/A patch nefertari.view.wrappers N/A patch nefertari.view.BaseView._run_init_actions test_convert_ids2objects_non_relational N/A N/A self run id2obj eng N/A N/A N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _query_params N/A foo1 bar _json_params N/A foo bar N/A N/A view Model Model1 N/A N/A N/A eng is_relationship_field return_value False N/A N/A N/A view convert_ids2objects N/A N/A N/A N/A eng is_relationship_field assert_called_once_with foo Model1 N/A N/A N/A id2obj called N/A N/A patch nefertari.view.engine N/A patch nefertari.view.BaseView.id2obj N/A patch nefertari.view.BaseView._run_init_actions test_convert_ids2objects_relational N/A N/A self run id2obj eng N/A N/A N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _query_params N/A foo1 bar _json_params N/A foo bar N/A N/A view Model Model1 N/A N/A N/A eng is_relationship_field return_value True N/A N/A N/A view convert_ids2objects N/A N/A N/A N/A eng get_relationship_cls assert_called_once_with foo Model1 N/A N/A N/A id2obj assert_called_once_with foo N/A N/A eng get_relationship_cls N/A N/A patch nefertari.view.engine N/A patch nefertari.view.BaseView.id2obj N/A patch nefertari.view.BaseView._run_init_actions test_setup_default_wrappers_with_auth N/A N/A self run wrap N/A N/A N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A N/A view _auth_enabled True N/A N/A N/A view setup_default_wrappers N/A N/A N/A len N/A N/A view _after_calls N/A index 5 N/A N/A N/A len N/A N/A view _after_calls N/A show 4 N/A N/A N/A len N/A N/A view _after_calls N/A create 4 N/A N/A N/A len N/A N/A view _after_calls N/A update 4 N/A N/A N/A len N/A N/A view _after_calls N/A replace 4 N/A N/A N/A N/A wrap apply_privacy call_count 5 N/A N/A patch nefertari.view.wrappers N/A patch nefertari.view.BaseView._run_init_actions test_setup_default_wrappers_no_auth N/A N/A self run wrap N/A N/A N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A N/A view _auth_enabled False N/A N/A N/A view setup_default_wrappers N/A N/A N/A len N/A N/A view _after_calls N/A index 4 N/A N/A N/A len N/A N/A view _after_calls N/A show 3 N/A N/A N/A N/A wrap apply_privacy called N/A N/A patch nefertari.view.wrappers N/A patch nefertari.view.BaseView._run_init_actions test_defalt_wrappers_and_wrap_me N/A N/A self N/A N/A nefertari wrappers N/A N/A self maxDiff None before_call N/A N/A N/A a N/A N/A N/A a N/A 2 N/A after_call N/A N/A N/A a N/A N/A N/A a N/A 2 N/A MyView N/A BaseView N/A N/A _json_encoder _JSONEncoder index N/A N/A self N/A N/A N/A N/A 1 2 3 N/A N/A N/A wrappers wrap_me before before_call after after_call convert_ids2objects N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A request N/A MagicMock content_type N/A resource N/A MagicMock actions N/A index N/A view N/A MyView resource request N/A N/A N/A len N/A N/A view _after_calls N/A index 4 N/A N/A N/A len N/A N/A view _after_calls N/A show 3 N/A N/A N/A N/A view index _before_calls N/A before_call N/A N/A N/A N/A view index _after_calls N/A after_call N/A test_not_allowed_action N/A N/A self run N/A N/A N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A N/A N/A pytest raises JHTTPMethodNotAllowed N/A N/A N/A N/A view not_allowed_action N/A N/A patch nefertari.view.BaseView._run_init_actions test_add_before_or_after_before N/A N/A self run N/A N/A N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A callable_ N/A N/A N/A x N/A x N/A N/A N/A view add_before_or_after_call action foo _callable callable_ pos None before True N/A N/A callable_ N/A N/A view _before_calls N/A foo N/A N/A patch nefertari.view.BaseView._run_init_actions test_add_before_or_after_after N/A N/A self run N/A N/A N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A callable_ N/A N/A N/A x N/A x N/A N/A N/A view add_before_or_after_call action foo _callable callable_ pos None before False N/A N/A callable_ N/A N/A view _after_calls N/A foo N/A N/A patch nefertari.view.BaseView._run_init_actions test_add_before_or_after_position N/A N/A self run N/A N/A N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A callable1 N/A N/A N/A x N/A x N/A callable2 N/A N/A N/A x N/A N/A x x N/A N/A N/A view add_before_or_after_call action foo _callable callable1 pos None before False N/A N/A callable1 N/A N/A N/A view _after_calls N/A foo N/A 0 N/A N/A N/A view add_before_or_after_call action foo _callable callable2 pos 0 before False N/A N/A callable2 N/A N/A N/A view _after_calls N/A foo N/A 0 N/A N/A callable1 N/A N/A N/A view _after_calls N/A foo N/A 1 N/A N/A patch nefertari.view.BaseView._run_init_actions test_add_before_or_after_not_callable N/A N/A self run N/A N/A N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A N/A N/A pytest raises ValueError ex N/A N/A N/A N/A view add_before_or_after_call action foo _callable asdasd pos None before False N/A N/A N/A str N/A ex value asdasd is not a callable N/A N/A patch nefertari.view.BaseView._run_init_actions test_subrequest_get N/A N/A self run req ulib N/A N/A N/A request N/A Mock content_type method accept N/A user None cookies N/A 1 N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A N/A N/A view subrequest url http:// params N/A par val method GET N/A N/A N/A N/A req blank assert_called_once_with http:// cookies N/A 1 content_type application/json method GET N/A N/A N/A N/A N/A view request invoke_subrequest assert_called_once_with N/A N/A req blank N/A N/A N/A N/A N/A ulib parse urlencode assert_called_once_with N/A par val N/A N/A patch nefertari.view.urllib N/A patch nefertari.view.Request N/A patch nefertari.view.BaseView._run_init_actions test_subrequest_post N/A N/A self run req json N/A N/A N/A request N/A Mock content_type method accept N/A user None cookies N/A 1 N/A view N/A DummyBaseView context N/A request request _query_params N/A foo bar N/A N/A N/A view subrequest url http:// params N/A par val method POST N/A N/A N/A N/A req blank assert_called_once_with http:// cookies N/A 1 content_type application/json method POST N/A N/A N/A N/A N/A view request invoke_subrequest assert_called_once_with N/A N/A req blank N/A N/A N/A N/A json dumps assert_called_once_with N/A par val N/A N/A patch nefertari.view.json N/A patch nefertari.view.Request N/A patch nefertari.view.BaseView._run_init_actions test_id2obj N/A N/A self run N/A N/A N/A model N/A Mock N/A N/A N/A model pk_field return_value idname N/A N/A N/A model get_item return_value foo N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _json_params N/A foo bar _query_params N/A foo1 bar1 N/A N/A N/A view _json_params N/A user 1 N/A N/A N/A view id2obj name user model model N/A N/A N/A N/A view _json_params N/A user foo N/A N/A N/A N/A model pk_field assert_called_once_with N/A N/A N/A N/A model get_item assert_called_once_with idname 1 _raise_on_empty False N/A N/A patch nefertari.view.BaseView._run_init_actions test_id2obj_list N/A N/A self run N/A N/A N/A model N/A Mock N/A N/A N/A model pk_field return_value idname N/A N/A N/A model get_item return_value foo N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _json_params N/A foo bar _query_params N/A foo1 bar1 N/A N/A N/A view _json_params N/A user N/A 1 N/A N/A N/A view id2obj name user model model N/A N/A N/A N/A view _json_params N/A user N/A foo N/A N/A N/A N/A model pk_field assert_called_once_with N/A N/A N/A N/A model get_item assert_called_once_with idname 1 _raise_on_empty False N/A N/A patch nefertari.view.BaseView._run_init_actions test_id2obj_not_in_params N/A N/A self run N/A N/A N/A model N/A Mock N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _json_params N/A foo bar _query_params N/A foo1 bar1 N/A N/A N/A view id2obj name asdasdasd model model N/A N/A N/A N/A model pk_field called N/A N/A N/A N/A model get_item called N/A N/A patch nefertari.view.BaseView._run_init_actions test_id2obj_setdefault N/A N/A self run N/A N/A N/A model N/A Mock N/A N/A N/A model pk_field return_value idname N/A N/A N/A model get_item return_value None N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _json_params N/A foo bar _query_params N/A foo1 bar1 N/A N/A N/A view _json_params N/A user 1 N/A N/A N/A view id2obj name user model model setdefault 123 N/A N/A N/A N/A view _json_params N/A user 123 N/A N/A N/A N/A model pk_field assert_called_once_with N/A N/A N/A N/A model get_item assert_called_once_with idname 1 _raise_on_empty False N/A N/A patch nefertari.view.BaseView._run_init_actions test_id2obj_value_none N/A N/A self run N/A N/A N/A model N/A Mock N/A N/A N/A model pk_field return_value idname N/A N/A N/A model get_item return_value foo N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _json_params N/A foo bar _query_params N/A foo1 bar1 N/A N/A N/A view _json_params N/A users N/A None 1 N/A N/A N/A view _json_params N/A story None N/A N/A N/A view id2obj name users model model N/A N/A N/A view id2obj name story model model N/A N/A N/A N/A view _json_params N/A users N/A None foo N/A N/A N/A N/A view _json_params N/A story None N/A N/A patch nefertari.view.BaseView._run_init_actions test_id2obj_already_object N/A N/A self run N/A N/A N/A id_ N/A Mock N/A model N/A Mock N/A N/A N/A model pk_field return_value idname N/A N/A N/A model get_item return_value None N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _json_params N/A foo bar _query_params N/A foo1 bar1 N/A N/A N/A view _json_params N/A user id_ N/A N/A N/A view id2obj name user model model setdefault 123 N/A N/A N/A N/A view _json_params N/A user id_ N/A N/A N/A N/A model pk_field assert_called_once_with N/A N/A N/A N/A model get_item called N/A N/A patch nefertari.view.BaseView._run_init_actions test_id2obj_not_found N/A N/A self run N/A N/A N/A model N/A Mock N/A N/A N/A model pk_field return_value idname N/A N/A N/A model get_item return_value None N/A request N/A N/A self get_common_mock_request N/A view N/A DummyBaseView context N/A request request _json_params N/A foo bar _query_params N/A foo1 bar1 N/A N/A N/A view _json_params N/A user 1 N/A N/A N/A pytest raises JHTTPBadRequest ex N/A N/A N/A N/A view id2obj name user model model N/A N/A N/A str N/A ex value id2obj: Object 1 not found N/A N/A patch nefertari.view.BaseView._run_init_actions N/A TestViewHelpers N/A object N/A test_key_error_view N/A N/A self N/A N/A N/A resp N/A key_error_view N/A Mock args N/A foo None N/A N/A N/A str N/A resp message Bad or missing param 'foo' N/A test_value_error_view N/A N/A self N/A N/A N/A resp N/A value_error_view N/A Mock args N/A foo None N/A N/A N/A str N/A resp message Bad or missing value 'foo' N/A test_error_view N/A N/A self N/A N/A N/A resp N/A error_view N/A Mock args N/A foo None N/A N/A N/A str N/A resp message foo N/A test_includeme N/A N/A self N/A N/A nefertari.view includeme N/A config N/A Mock N/A N/A includeme config N/A calls N/A N/A call key_error_view context KeyError N/A call value_error_view context ValueError N/A call error_view context Exception N/A N/A N/A N/A config add_view assert_has_calls calls any_order True N/A N/A