Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Num Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpAdd Num NameLoad comprehension NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body For NameStore Call NameLoad Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign AttributeStore AttributeLoad NameLoad attr attr Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Num Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpAdd Num NameLoad comprehension NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body For NameStore Call NameLoad Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr SubscriptLoad NameLoad Index Num decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr
N/A __future__ unicode_literals N/A unittest N/A spotify N/A tests tests mock PlaylistUnseenTracksTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self session N/A N/A tests create_session_mock N/A test_normal_usage N/A N/A self track_lib_mock lib_mock N/A N/A N/A sp_playlistcontainer N/A N/A N/A spotify ffi cast sp_playlistcontainer * 42 N/A sp_playlist N/A N/A N/A spotify ffi cast sp_playlist * 43 N/A total_num_tracks 3 N/A sp_tracks N/A N/A N/A N/A spotify ffi cast sp_track * N/A 44 i N/A i N/A range total_num_tracks func N/A N/A sp_pc sp_p sp_t num_t N/A N/A N/A i N/A range N/A min total_num_tracks num_t N/A N/A N/A sp_t N/A i N/A sp_tracks N/A i N/A total_num_tracks N/A N/A N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks side_effect func N/A tracks N/A N/A spotify PlaylistUnseenTracks N/A self session sp_playlistcontainer sp_playlist N/A N/A N/A N/A lib_mock sp_playlistcontainer_add_ref assert_called_with sp_playlistcontainer N/A N/A N/A N/A lib_mock sp_playlist_add_ref assert_called_with sp_playlist N/A N/A N/A self assertEqual N/A len tracks total_num_tracks N/A N/A N/A self assertEqual N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks call_count 1 N/A N/A N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks assert_called_with sp_playlistcontainer sp_playlist N/A mock ANY 0 N/A track0 N/A tracks N/A 0 N/A N/A N/A self assertEqual N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks call_count 2 N/A N/A N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks assert_called_with sp_playlistcontainer sp_playlist N/A mock ANY total_num_tracks N/A N/A N/A self assertIsInstance track0 N/A spotify Track N/A N/A N/A self assertEqual N/A track0 _sp_track N/A sp_tracks N/A 0 N/A track1 N/A tracks N/A 1 N/A N/A N/A self assertEqual N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks call_count 2 N/A N/A N/A self assertIsInstance track1 N/A spotify Track N/A N/A N/A self assertEqual N/A track1 _sp_track N/A sp_tracks N/A 1 N/A track2 N/A tracks N/A -3 N/A N/A N/A self assertEqual N/A track2 _sp_track N/A track0 _sp_track N/A N/A N/A self assertEqual N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks call_count 2 N/A N/A N/A mock patch spotify.track.lib spec N/A spotify lib test_raises_error_on_failure N/A N/A self lib_mock N/A N/A N/A sp_playlistcontainer N/A N/A N/A spotify ffi cast sp_playlistcontainer * 42 N/A sp_playlist N/A N/A N/A spotify ffi cast sp_playlist * 43 N/A N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks return_value -3 N/A N/A N/A self assertRaises N/A spotify Error N/A N/A N/A N/A spotify PlaylistUnseenTracks N/A self session sp_playlistcontainer sp_playlist N/A test_getitem_with_slice N/A N/A self track_lib_mock lib_mock N/A N/A N/A sp_playlistcontainer N/A N/A N/A spotify ffi cast sp_playlistcontainer * 42 N/A sp_playlist N/A N/A N/A spotify ffi cast sp_playlist * 43 N/A total_num_tracks 3 N/A sp_tracks N/A N/A N/A N/A spotify ffi cast sp_track * N/A 44 i N/A i N/A range total_num_tracks func N/A N/A sp_pc sp_p sp_t num_t N/A N/A N/A i N/A range N/A min total_num_tracks num_t N/A N/A N/A sp_t N/A i N/A sp_tracks N/A i N/A total_num_tracks N/A N/A N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks side_effect func N/A tracks N/A N/A spotify PlaylistUnseenTracks N/A self session sp_playlistcontainer sp_playlist N/A result N/A tracks N/A 0 2 N/A N/A N/A self assertIsInstance result list N/A N/A N/A self assertEqual N/A len result 2 N/A N/A N/A self assertIsInstance N/A result N/A 0 N/A spotify Track N/A N/A N/A self assertEqual N/A N/A result N/A 0 _sp_track N/A sp_tracks N/A 0 N/A N/A N/A self assertIsInstance N/A result N/A 1 N/A spotify Track N/A N/A N/A self assertEqual N/A N/A result N/A 1 _sp_track N/A sp_tracks N/A 1 N/A N/A N/A mock patch spotify.track.lib spec N/A spotify lib test_getitem_raises_index_error_on_too_low_index N/A N/A self lib_mock N/A N/A N/A sp_playlistcontainer N/A N/A N/A spotify ffi cast sp_playlistcontainer * 42 N/A sp_playlist N/A N/A N/A spotify ffi cast sp_playlist * 43 N/A N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks return_value 0 N/A tracks N/A N/A spotify PlaylistUnseenTracks N/A self session sp_playlistcontainer sp_playlist N/A N/A N/A self assertRaises IndexError ctx N/A N/A N/A tracks N/A -1 N/A N/A N/A self assertEqual N/A str N/A ctx exception list index out of range N/A test_getitem_raises_index_error_on_too_high_index N/A N/A self lib_mock N/A N/A N/A sp_playlistcontainer N/A N/A N/A spotify ffi cast sp_playlistcontainer * 42 N/A sp_playlist N/A N/A N/A spotify ffi cast sp_playlist * 43 N/A N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks return_value 0 N/A tracks N/A N/A spotify PlaylistUnseenTracks N/A self session sp_playlistcontainer sp_playlist N/A N/A N/A self assertRaises IndexError ctx N/A N/A N/A tracks N/A 1 N/A N/A N/A self assertEqual N/A str N/A ctx exception list index out of range N/A test_getitem_raises_type_error_on_non_integral_index N/A N/A self lib_mock N/A N/A N/A sp_playlistcontainer N/A N/A N/A spotify ffi cast sp_playlistcontainer * 42 N/A sp_playlist N/A N/A N/A spotify ffi cast sp_playlist * 43 N/A N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks return_value 0 N/A tracks N/A N/A spotify PlaylistUnseenTracks N/A self session sp_playlistcontainer sp_playlist N/A N/A N/A self assertRaises TypeError N/A N/A N/A tracks N/A abc N/A test_repr N/A N/A self lib_mock N/A N/A N/A sp_playlistcontainer N/A N/A N/A spotify ffi cast sp_playlistcontainer * 42 N/A sp_playlist N/A N/A N/A spotify ffi cast sp_playlist * 43 N/A N/A N/A lib_mock sp_playlistcontainer_get_unseen_tracks return_value 0 N/A tracks N/A N/A spotify PlaylistUnseenTracks N/A self session sp_playlistcontainer sp_playlist N/A N/A N/A self assertEqual N/A repr tracks PlaylistUnseenTracks([]) N/A N/A N/A N/A mock patch spotify.playlist_unseen_tracks.lib spec N/A spotify lib