Module Import alias ImportFrom alias ImportFrom alias 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 AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num NameLoad Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num NameLoad Assert CompareGtE SubscriptLoad AttributeLoad NameLoad attr Index Str Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str BinOpMod Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad NameLoad Index Str keyword NameLoad keyword Str Assert CompareEq AttributeLoad NameLoad attr Num TupleLoad AttributeLoad NameLoad attr NameLoad Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assert SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad NameLoad Index Str keyword NameLoad keyword Str Assert CompareEq AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad NameLoad Index Str keyword NameLoad keyword Str Assert CompareEq AttributeLoad NameLoad attr Num NameLoad decorator_list decorator_list
N/A N/A json aleph.core db aleph.model Source Permission Role aleph.tests.util TestCase SourcesApiTestCase N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super SourcesApiTestCase self setUp N/A N/A self source N/A Source N/A N/A N/A self source foreign_id test N/A N/A N/A self source label Test Collection N/A N/A N/A self source category news N/A N/A N/A N/A db session add N/A self source N/A N/A N/A N/A db session flush N/A permission N/A Permission N/A N/A permission role_id N/A N/A Role system N/A Role SYSTEM_USER N/A N/A permission read True N/A N/A permission write True N/A N/A permission resource_id N/A N/A self source id N/A N/A permission resource_type N/A Permission SOURCE N/A N/A N/A N/A db session add permission N/A N/A N/A N/A db session commit N/A test_index N/A N/A self N/A N/A N/A res N/A N/A N/A self client get /api/1/sources N/A N/A N/A res status_code 200 res N/A N/A N/A N/A res json N/A total 0 N/A res json N/A N/A N/A self login N/A res N/A N/A N/A self client get /api/1/sources N/A N/A N/A res status_code 200 res N/A N/A N/A N/A res json N/A total 1 N/A res json N/A test_view N/A N/A self N/A N/A N/A res N/A N/A N/A self client get N/A /api/1/sources/%s N/A N/A self source id N/A N/A N/A res status_code 403 res N/A N/A N/A self login N/A res N/A N/A N/A self client get N/A /api/1/sources/%s N/A N/A self source id N/A N/A N/A res status_code 200 N/A res json N/A data N/A res json N/A N/A N/A data N/A label N/A N/A self source label N/A test_view_not_found N/A N/A self N/A N/A N/A res N/A N/A N/A self client get /api/sources/8388 N/A N/A N/A res status_code 404 res N/A test_update N/A N/A self N/A N/A N/A N/A N/A self login N/A res N/A N/A N/A self client get N/A /api/1/sources/%s N/A N/A self source id N/A data N/A res json N/A N/A data N/A label N/A %s - new N/A data N/A label N/A jdata N/A N/A json dumps data N/A res N/A N/A N/A self client post N/A /api/1/sources/%s N/A data N/A id data jdata content_type application/json N/A N/A N/A res status_code 200 N/A N/A res json data N/A N/A N/A N/A res json N/A label N/A data N/A label N/A res json N/A N/A N/A res json N/A id N/A res json N/A test_update_invalid_label N/A N/A self N/A N/A N/A N/A N/A self login N/A res N/A N/A N/A self client get N/A /api/1/sources/%s N/A N/A self source id N/A data N/A res json N/A N/A data N/A label H N/A jdata N/A N/A json dumps data N/A res N/A N/A N/A self client post N/A /api/1/sources/%s N/A data N/A id data jdata content_type application/json N/A N/A N/A res status_code 400 res N/A test_update_invalid_category N/A N/A self N/A N/A N/A N/A N/A self login N/A res N/A N/A N/A self client get N/A /api/1/sources/%s N/A N/A self source id N/A data N/A res json N/A N/A data N/A category banana N/A jdata N/A N/A json dumps data N/A res N/A N/A N/A self client post N/A /api/1/sources/%s N/A data N/A id data jdata content_type application/json N/A N/A N/A res status_code 400 res N/A N/A