Module Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str NameLoad keyword Str FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str NameLoad keyword Str keyword NameLoad FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str NameLoad keyword Str keyword NameLoad FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Call NameLoad Str Str NameLoad Call NameLoad Str Str NameLoad Call NameLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Str NameLoad keyword Str FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad keyword Str decorator_list Call AttributeLoad NameLoad attr NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str NameLoad keyword Str keyword AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str NameLoad keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword Dict Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest mock patch call flask Flask flask.ext.testing TestCase flask_apiblueprint APIBlueprint BaseTest N/A TestCase N/A create_app N/A N/A self N/A N/A N/A app N/A Flask __name__ N/A N/A N/A app config N/A TESTING True N/A app N/A setUp N/A N/A self N/A N/A N/A N/A N/A self initialize N/A initialize N/A N/A self N/A N/A N/A N/A N/A TestAPIBlueprint N/A BaseTest N/A _setup_parent_blueprint N/A N/A self N/A N/A N/A bp N/A APIBlueprint bp_v1 __name__ url_prefix /v1 foo N/A N/A N/A N/A N/A Foo N/A N/A N/A bp route /foo bar N/A N/A N/A N/A N/A Bar N/A N/A N/A bp route /bar N/A N/A bp foo bar N/A test_setup_no_inheritance N/A N/A self copy_routes N/A N/A N/A bp N/A APIBlueprint bp __name__ N/A N/A N/A self assertFalse N/A copy_routes called N/A N/A N/A patch object APIBlueprint copy_routes test_setup_with_inheritance N/A N/A self copy_routes N/A N/A N/A 
        Verify that copy routes is called when a blueprint is initialized
        with an `inherit_from` argument.
         N/A bp N/A APIBlueprint bp __name__ N/A inherited_bp N/A APIBlueprint bp_v2 __name__ url_prefix /v2 inherit_from bp N/A N/A N/A copy_routes assert_called_once_with remapping None N/A N/A N/A patch object APIBlueprint copy_routes test_route N/A N/A self route N/A N/A N/A 
        Verify that route is called with right arguments when a blueprint is
        inherited and then overloaded.
         N/A N/A bp foo bar N/A N/A self _setup_parent_blueprint N/A inherited_bp N/A APIBlueprint bp_v2 __name__ url_prefix /v2 inherit_from bp overloaded_bar N/A N/A N/A N/A N/A Overloaded bar N/A N/A N/A inherited_bp route /bar N/A expected_calls N/A N/A call /foo N/A call /bar N/A call /bar N/A N/A N/A self assertEqual N/A route call_args_list expected_calls N/A N/A N/A patch object APIBlueprint route test_add_url_rule N/A N/A self add_url_rule N/A N/A N/A 
        Verify that add_url_rule is called with the right arguments when a route is
        inherited and then overloaded.
         N/A N/A bp foo bar N/A N/A self _setup_parent_blueprint N/A inherited_bp N/A APIBlueprint bp_v2 __name__ url_prefix /v2 inherit_from bp overloaded_bar N/A N/A N/A N/A N/A Overloaded bar N/A N/A N/A inherited_bp route /bar N/A expected_calls N/A N/A call /foo foo foo N/A call /bar bar bar N/A call /bar overloaded_bar overloaded_bar N/A N/A N/A self assertEqual expected_calls N/A add_url_rule call_args_list N/A N/A N/A patch object APIBlueprint add_url_rule test_record_not_inherited_route N/A N/A self record N/A N/A N/A 
        Verify that record is called with right arguments when a route is added.
         N/A bp N/A APIBlueprint bp_v1 __name__ url_prefix /v1 foo N/A N/A N/A N/A N/A Foo N/A N/A N/A bp route /foo N/A N/A N/A self assertEqual N/A record call_count 1 N/A expected_call N/A N/A record call_args_list N/A 0 N/A N/A call_args call_kwargs N/A N/A expected_call N/A 0 N/A expected_call N/A 1 N/A N/A N/A self assertEqual call_kwargs N/A dict rule /foo N/A N/A N/A patch object APIBlueprint record N/A TestAPIBlueprintIntegration N/A TestAPIBlueprint N/A initialize N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super TestAPIBlueprintIntegration self initialize args kwargs N/A N/A N/A self bp N/A self foo N/A self bar N/A N/A self _setup_parent_blueprint N/A N/A N/A N/A self app register_blueprint N/A self bp N/A test_overloaded_routes N/A N/A self N/A N/A N/A inherited_bp N/A APIBlueprint bp_v2 __name__ url_prefix /v2 inherit_from N/A self bp overloaded_bar N/A N/A N/A N/A N/A Overloaded Bar N/A N/A N/A inherited_bp route /bar N/A N/A N/A N/A self app register_blueprint inherited_bp N/A N/A N/A self assertEqual N/A N/A N/A N/A self client get /v2/foo data N/A N/A N/A N/A self client get v1/foo data N/A N/A N/A self assertEqual N/A N/A N/A N/A self client get /v2/bar data Overloaded Bar N/A N/A N/A self assertEqual N/A N/A N/A N/A self client get /v1/bar data Bar N/A test_inherited_routes N/A N/A self N/A N/A N/A inherited_bp N/A APIBlueprint bp_v2 __name__ url_prefix /v2 inherit_from N/A self bp N/A N/A N/A N/A self app register_blueprint inherited_bp N/A N/A N/A self assertEqual N/A N/A N/A N/A self client get /v2/foo data N/A N/A N/A N/A self client get v1/foo data N/A N/A N/A self assertEqual N/A N/A N/A N/A self client get /v2/bar data N/A N/A N/A N/A self client get v1/bar data N/A test_remapped_routes N/A N/A self N/A N/A N/A inherited_bp N/A APIBlueprint bp_v2 __name__ url_prefix /v2 inherit_from N/A self bp remapping N/A /foo /faz N/A N/A N/A N/A self app register_blueprint inherited_bp N/A N/A N/A self assert404 N/A N/A N/A self client get /v2/foo N/A N/A N/A self assertEqual N/A N/A N/A N/A self client get /v2/faz data N/A N/A N/A N/A self client get /v1/foo data N/A N/A N/A self assertEqual N/A N/A N/A N/A self client get /v2/bar data N/A N/A N/A N/A self client get /v1/bar data N/A test_deprecated_routes_not_copied N/A N/A self N/A N/A N/A inherited_bp N/A APIBlueprint bp_v2 __name__ url_prefix /v2 inherit_from N/A self bp remapping N/A /foo None N/A N/A N/A N/A self app register_blueprint inherited_bp N/A N/A N/A self assert200 N/A N/A N/A self client get v1/foo N/A N/A N/A self assert404 N/A N/A N/A self client get v2/foo N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main