Module ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Expr Call NameLoad BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str ListLoad Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str ListLoad Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str ListLoad Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str ListLoad Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str ListLoad Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str ListLoad Dict Str Str Str Str keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str ListLoad Dict Str AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str ListLoad Dict Str Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list decorator_list
N/A nose.tools * tests.base ApiTestCase tests.factories AuthUserFactory InstitutionFactory api.base.settings.defaults API_BASE TestUserInstititutionRelationship N/A ApiTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestUserInstititutionRelationship self setUp N/A N/A self user N/A AuthUserFactory N/A N/A self user2 N/A AuthUserFactory N/A N/A self url N/A N/A /{}users/{}/relationships/institutions/ format API_BASE N/A N/A self user _id N/A N/A self institution1 N/A InstitutionFactory N/A N/A self institution2 N/A InstitutionFactory N/A N/A N/A N/A N/A self user affiliated_institutions append N/A self institution1 N/A N/A N/A N/A N/A self user affiliated_institutions append N/A self institution2 N/A N/A N/A N/A self user save N/A test_get_relationship_institutions N/A N/A self N/A N/A N/A res N/A N/A N/A self app get N/A self url auth N/A N/A self user auth N/A N/A assert_equal N/A res status_code 200 N/A N/A assert_in N/A N/A N/A self user absolute_api_v2_url relationships/institutions/ N/A N/A N/A res json N/A links N/A self N/A N/A assert_in N/A N/A N/A self user absolute_api_v2_url institutions/ N/A N/A N/A res json N/A links N/A html N/A ids N/A N/A val N/A id N/A val N/A N/A res json N/A data N/A N/A assert_in N/A N/A self institution1 _id ids N/A N/A assert_in N/A N/A self institution2 _id ids N/A test_get_institutions_relationship_while_logged_out N/A N/A self N/A N/A N/A res N/A N/A N/A self app get N/A self url N/A ids N/A N/A val N/A id N/A val N/A N/A res json N/A data N/A N/A assert_in N/A N/A self institution1 _id ids N/A N/A assert_in N/A N/A self institution2 _id ids N/A test_post_with_auth N/A N/A self N/A N/A N/A res N/A N/A N/A self app post_json_api N/A self url N/A auth N/A N/A self user auth expect_errors True N/A N/A assert_equal N/A res status_code 405 N/A test_put_with_auth N/A N/A self N/A N/A N/A res N/A N/A N/A self app put_json_api N/A self url N/A auth N/A N/A self user auth expect_errors True N/A N/A assert_equal N/A res status_code 405 N/A test_post_without_auth N/A N/A self N/A N/A N/A res N/A N/A N/A self app post_json_api N/A self url N/A expect_errors True N/A N/A assert_equal N/A res status_code 401 N/A test_put_without_auth N/A N/A self N/A N/A N/A res N/A N/A N/A self app put_json_api N/A self url N/A expect_errors True N/A N/A assert_equal N/A res status_code 401 N/A test_delete_no_auth N/A N/A self N/A N/A N/A res N/A N/A N/A self app delete_json_api N/A self url N/A data N/A N/A type id institutions N/A N/A self institution1 _id expect_errors True N/A N/A assert_equal N/A res status_code 401 N/A test_delete_wrong_auth N/A N/A self N/A N/A N/A res N/A N/A N/A self app delete_json_api N/A self url N/A data N/A N/A type id institutions N/A N/A self institution1 _id auth N/A N/A self user2 auth expect_errors True N/A N/A assert_equal N/A res status_code 403 N/A test_delete_one N/A N/A self N/A N/A N/A res N/A N/A N/A self app delete_json_api N/A self url N/A data N/A N/A type id institutions N/A N/A self institution1 _id auth N/A N/A self user auth N/A N/A assert_equal N/A res status_code 204 N/A N/A N/A N/A self user reload N/A ids N/A N/A inst _id N/A inst N/A N/A self user affiliated_institutions N/A N/A assert_not_in N/A N/A self institution1 _id ids N/A N/A assert_in N/A N/A self institution2 _id ids N/A test_type_mistyped N/A N/A self N/A N/A N/A res N/A N/A N/A self app delete_json_api N/A self url N/A data N/A N/A type id wow N/A N/A self institution1 _id auth N/A N/A self user auth expect_errors True N/A N/A assert_equal N/A res status_code 409 N/A test_delete_multiple N/A N/A self N/A N/A N/A res N/A N/A N/A self app delete_json_api N/A self url N/A data N/A N/A type id institutions N/A N/A self institution1 _id N/A type id institutions N/A N/A self institution2 _id auth N/A N/A self user auth N/A N/A assert_equal N/A res status_code 204 N/A N/A N/A N/A self user reload N/A ids N/A N/A inst _id N/A inst N/A N/A self user affiliated_institutions N/A N/A assert_not_in N/A N/A self institution1 _id ids N/A N/A assert_not_in N/A N/A self institution2 _id ids N/A test_delete_one_not_existing N/A N/A self N/A N/A N/A res N/A N/A N/A self app delete_json_api N/A self url N/A data N/A N/A type id institutions not_an_id auth N/A N/A self user auth N/A N/A assert_equal N/A res status_code 204 N/A N/A N/A N/A self user reload N/A ids N/A N/A inst _id N/A inst N/A N/A self user affiliated_institutions N/A N/A assert_in N/A N/A self institution1 _id ids N/A N/A assert_in N/A N/A self institution2 _id ids N/A test_attempt_payload_not_in_array N/A N/A self N/A N/A N/A res N/A N/A N/A self app delete_json_api N/A self url N/A data N/A type id institutions N/A N/A self institution1 _id auth N/A N/A self user auth expect_errors True N/A N/A assert_equal N/A res status_code 400 N/A test_attempt_with_no_type_field N/A N/A self N/A N/A N/A res N/A N/A N/A self app delete_json_api N/A self url N/A data N/A N/A id N/A N/A self institution1 _id auth N/A N/A self user auth expect_errors True N/A N/A assert_equal N/A res status_code 400 N/A test_attempt_with_no_id_field N/A N/A self N/A N/A N/A res N/A N/A N/A self app delete_json_api N/A self url N/A data N/A N/A type institutions auth N/A N/A self user auth expect_errors True N/A N/A assert_equal N/A res status_code 400 N/A N/A