Module ImportFrom alias ImportFrom alias identifier ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str 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 FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Dict Str BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Num decorator_list decorator_list
N/A flask json nose tools nose tests.integration.resource ResourceTestCase PlaylistsResourceTestCase N/A ResourceTestCase N/A N/A 
    GET /playlists/ [user=<int>] [track=<int>]
        200 OK
        401 Unauthorized
    POST /playlists/ name=<str>
        201 Created
        400 Bad Request
        401 Unauthorized
    GET /playlists/<id>/
        200 OK
        401 Unauthorized
        404 Not Found
    PUT /playlists/<id>/ name=<str>
        204 No Content
        401 Unauthorized
        404 Not Found
    POST /playlists/<id>/add/ track=<int> [index=<int>]
        204 No Content
        400 Bad Request
        401 Unauthorized
        404 Not Found
    POST /playlists/<id>/remove/ index=<int>
        204 No Content
        400 Bad Request
        401 Unauthorized
        404 Not Found
    DELETE /playlists/
        204 No Content
        401 Unauthorized
        404 Not Found
     get_payload N/A N/A self N/A N/A N/A N/A name Playtest N/A test_unauthorized_access N/A N/A self N/A N/A N/A resp N/A N/A self get /playlists/ authenticate False N/A N/A N/A nose eq_ N/A resp status_code 401 N/A resp N/A N/A self get /playlists/1/ authenticate False N/A N/A N/A nose eq_ N/A resp status_code 401 N/A payload N/A N/A self get_payload N/A resp N/A N/A self post /playlists/ data payload authenticate False N/A N/A N/A nose eq_ N/A resp status_code 401 N/A resp N/A N/A self put /playlists/ data payload authenticate False N/A N/A N/A nose eq_ N/A resp status_code 401 N/A resp N/A N/A self delete /playlists/ authenticate False N/A N/A N/A nose eq_ N/A resp status_code 401 N/A payload N/A dict track 1 N/A resp N/A N/A self post /playlists/1/add/ data payload authenticate False N/A N/A N/A nose eq_ N/A resp status_code 401 N/A resp N/A N/A self post /playlists/1/remove/ data payload authenticate False N/A N/A N/A nose eq_ N/A resp status_code 401 N/A test_playlist_base_resource N/A N/A self N/A N/A N/A resp N/A N/A self get /playlists/ N/A N/A N/A nose eq_ N/A resp status_code 200 N/A test_nonexistent_playlist N/A N/A self N/A N/A N/A resp N/A N/A self get /playlists/123/ N/A N/A N/A nose eq_ N/A resp status_code 404 N/A test_playlist_creation N/A N/A self N/A N/A N/A resp N/A N/A self post /playlists/ data N/A N/A self get_payload N/A N/A N/A nose eq_ N/A resp status_code 201 N/A test_playlist N/A N/A self N/A N/A N/A resp N/A N/A self post /playlists/ data N/A N/A self get_payload N/A playlist_url N/A /playlists/%s/ N/A N/A resp json N/A id N/A _resp N/A N/A self get playlist_url N/A N/A N/A nose eq_ N/A _resp status_code 200 N/A N/A N/A nose ok_ N/A N/A N/A _resp json has_key id N/A N/A N/A nose ok_ N/A N/A N/A _resp json has_key name N/A N/A N/A nose ok_ N/A N/A N/A _resp json has_key user N/A N/A N/A nose ok_ N/A N/A N/A _resp json has_key length N/A N/A N/A nose ok_ N/A N/A N/A _resp json has_key tracks N/A N/A N/A nose ok_ N/A N/A N/A _resp json has_key read_only N/A N/A N/A nose ok_ N/A N/A N/A _resp json has_key creation_date N/A test_playlist_creation_error N/A N/A self N/A N/A N/A resp N/A N/A self post /playlists/ data N/A name N/A N/A N/A nose eq_ N/A resp status_code 400 N/A N/A N/A N/A self _app config N/A ALLOW_ANONYMOUS_ACCESS True N/A resp N/A N/A self post /playlists/ data N/A name Mane N/A N/A N/A nose eq_ N/A resp status_code 400 N/A test_playlist_update N/A N/A self N/A N/A N/A resp N/A N/A self post /playlists/ data N/A N/A self get_payload N/A playlist_url N/A /playlists/%s/ N/A N/A resp json N/A id N/A old_name N/A N/A resp json N/A name N/A payload N/A name N/A %s-2 old_name N/A _resp N/A N/A self put playlist_url data payload N/A N/A N/A nose eq_ N/A _resp status_code 204 N/A _resp N/A N/A self get playlist_url N/A N/A N/A nose eq_ N/A N/A _resp json N/A name N/A %s-2 old_name N/A test_track_addition N/A N/A self N/A N/A N/A resp N/A N/A self post /playlists/ data N/A N/A self get_payload N/A playlist_url N/A /playlists/%s/ N/A N/A resp json N/A id N/A add_url N/A %sadd/ playlist_url N/A resp N/A N/A self post add_url data N/A track index N/A N/A self track pk 0 N/A N/A N/A nose eq_ N/A resp status_code 204 N/A resp N/A N/A self post add_url data N/A track index N/A N/A self track pk 1 N/A N/A N/A nose eq_ N/A resp status_code 204 N/A resp N/A N/A self post add_url data N/A track index N/A N/A self track pk 0 N/A N/A N/A nose eq_ N/A resp status_code 204 N/A resp N/A N/A self post add_url data N/A track index N/A N/A self track pk 2 N/A N/A N/A nose eq_ N/A resp status_code 204 N/A resp N/A N/A self post add_url data N/A track index N/A N/A self track pk 0 N/A N/A N/A nose eq_ N/A resp status_code 204 N/A resp N/A N/A self get playlist_url N/A track N/A N/A N/A resp json N/A tracks N/A 0 N/A N/A N/A nose eq_ N/A len N/A N/A resp json N/A tracks 5 N/A N/A N/A nose ok_ N/A N/A track has_key id N/A N/A N/A nose ok_ N/A N/A track has_key uri N/A N/A N/A nose ok_ N/A N/A track has_key index N/A test_track_addition_error N/A N/A self N/A N/A N/A resp N/A N/A self post /playlists/ data N/A N/A self get_payload N/A add_url N/A /playlists/%s/add/ N/A N/A resp json N/A id N/A _resp N/A N/A self post add_url data N/A N/A N/A N/A nose eq_ N/A _resp status_code 400 N/A _resp N/A N/A self post add_url data N/A track index N/A N/A self track pk 123 N/A N/A N/A nose eq_ N/A _resp status_code 400 N/A test_track_addition_to_nonexistent_playlist N/A N/A self N/A N/A N/A url /playlists/123/add/ N/A resp N/A N/A self post url data N/A N/A self get_payload N/A N/A N/A nose eq_ N/A resp status_code 404 N/A test_track_removal N/A N/A self N/A N/A N/A resp N/A N/A self post /playlists/ data N/A N/A self get_payload N/A add_url N/A /playlists/%s/add/ N/A N/A resp json N/A id N/A remove_url N/A /playlists/%s/remove/ N/A N/A resp json N/A id N/A resp N/A N/A self post add_url data N/A track index N/A N/A self track pk 0 N/A resp N/A N/A self post remove_url data N/A index 0 N/A N/A N/A nose eq_ N/A resp status_code 204 N/A test_track_removal_error N/A N/A self N/A N/A N/A resp N/A N/A self post /playlists/ data N/A N/A self get_payload N/A remove_url N/A /playlists/%s/remove/ N/A N/A resp json N/A id N/A resp N/A N/A self post remove_url data N/A N/A N/A N/A nose eq_ N/A resp status_code 400 N/A resp N/A N/A self post remove_url data N/A index 0 N/A N/A N/A nose eq_ N/A resp status_code 400 N/A test_track_removal_from_nonexistent_playlist N/A N/A self N/A N/A N/A url /playlists/123/remove/ N/A resp N/A N/A self post url data N/A index 0 N/A N/A N/A nose eq_ N/A resp status_code 404 N/A test_playlist_delete N/A N/A self N/A N/A N/A resp N/A N/A self post /playlists/ data N/A N/A self get_payload N/A playlist_url N/A /playlists/%s/ N/A N/A resp json N/A id N/A resp N/A N/A self delete playlist_url N/A N/A N/A nose eq_ N/A resp status_code 204 N/A resp N/A N/A self get playlist_url N/A N/A N/A nose eq_ N/A resp status_code 404 N/A test_delete_nonexistent_playlist N/A N/A self N/A N/A N/A resp N/A N/A self delete /playlists/123/ N/A N/A N/A nose eq_ N/A resp status_code 404 N/A test_track_removal N/A N/A self N/A N/A N/A 
        1. Create playlist
        2. Add existing track
        3. Delete track from DB
        4. Check that the playlists get updated and track is no longer present

         N/A resp N/A N/A self post /playlists/ data N/A N/A self get_payload N/A N/A N/A nose eq_ N/A resp status_code 201 N/A playlist_url N/A /playlists/%s/ N/A N/A resp json N/A id N/A add_url N/A /playlists/%s/add/ N/A N/A resp json N/A id N/A track N/A N/A self mk_track N/A resp N/A N/A self post add_url data N/A track index N/A track pk 0 N/A N/A N/A nose eq_ N/A resp status_code 204 N/A resp N/A N/A self delete N/A /tracks/%s/ N/A track pk N/A N/A N/A nose eq_ N/A resp status_code 204 N/A resp N/A N/A self get playlist_url N/A N/A N/A nose eq_ N/A N/A resp json N/A length 0 N/A N/A