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 NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr 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 PlayerTest N/A N/A unittest TestCase N/A tearDown N/A N/A self N/A N/A N/A N/A spotify _session_instance None N/A test_player_state_is_unloaded_initially N/A N/A self session_lib_mock lib_mock N/A N/A N/A session N/A N/A tests create_real_session session_lib_mock N/A N/A N/A self assertEqual N/A N/A session player state N/A N/A spotify PlayerState UNLOADED N/A test_player_load N/A N/A self track_lib_mock session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_load return_value N/A N/A spotify ErrorType OK N/A session N/A N/A tests create_real_session session_lib_mock N/A sp_track N/A N/A N/A spotify ffi cast sp_track * 42 N/A track N/A N/A spotify Track session sp_track sp_track N/A N/A N/A N/A session player load track N/A N/A N/A N/A lib_mock sp_session_player_load assert_called_once_with N/A session _sp_session sp_track N/A N/A N/A self assertEqual N/A N/A session player state N/A N/A spotify PlayerState LOADED N/A N/A N/A mock patch spotify.track.lib spec N/A spotify lib test_player_load_fail_raises_error N/A N/A self track_lib_mock session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_load return_value N/A N/A spotify ErrorType TRACK_NOT_PLAYABLE N/A session N/A N/A tests create_real_session session_lib_mock N/A player_state N/A N/A session player state N/A sp_track N/A N/A N/A spotify ffi cast sp_track * 42 N/A track N/A N/A spotify Track session sp_track sp_track N/A N/A N/A self assertRaises N/A spotify Error N/A N/A N/A N/A N/A session player load track N/A N/A N/A self assertEqual N/A N/A session player state player_state N/A N/A N/A mock patch spotify.track.lib spec N/A spotify lib test_player_seek N/A N/A self session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_seek return_value N/A N/A spotify ErrorType OK N/A session N/A N/A tests create_real_session session_lib_mock N/A player_state N/A N/A session player state N/A N/A N/A N/A session player seek 45000 N/A N/A N/A N/A lib_mock sp_session_player_seek assert_called_once_with N/A session _sp_session 45000 N/A N/A N/A self assertEqual N/A N/A session player state player_state N/A test_player_seek_fail_raises_error N/A N/A self session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_seek return_value N/A N/A spotify ErrorType BAD_API_VERSION N/A session N/A N/A tests create_real_session session_lib_mock N/A player_state N/A N/A session player state N/A N/A N/A self assertRaises N/A spotify Error N/A N/A N/A N/A N/A session player seek 45000 N/A N/A N/A self assertEqual N/A N/A session player state player_state N/A test_player_play N/A N/A self session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_play return_value N/A N/A spotify ErrorType OK N/A session N/A N/A tests create_real_session session_lib_mock N/A N/A N/A N/A session player play True N/A N/A N/A N/A lib_mock sp_session_player_play assert_called_once_with N/A session _sp_session 1 N/A N/A N/A self assertEqual N/A N/A session player state N/A N/A spotify PlayerState PLAYING N/A test_player_play_with_false_to_pause N/A N/A self session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_play return_value N/A N/A spotify ErrorType OK N/A session N/A N/A tests create_real_session session_lib_mock N/A N/A N/A N/A session player play False N/A N/A N/A N/A lib_mock sp_session_player_play assert_called_once_with N/A session _sp_session 0 N/A N/A N/A self assertEqual N/A N/A session player state N/A N/A spotify PlayerState PAUSED N/A test_player_play_fail_raises_error N/A N/A self session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_play return_value N/A N/A spotify ErrorType BAD_API_VERSION N/A session N/A N/A tests create_real_session session_lib_mock N/A player_state N/A N/A session player state N/A N/A N/A self assertRaises N/A spotify Error N/A N/A N/A N/A N/A session player play True N/A N/A N/A self assertEqual N/A N/A session player state player_state N/A test_player_pause N/A N/A self session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_play return_value N/A N/A spotify ErrorType OK N/A session N/A N/A tests create_real_session session_lib_mock N/A N/A N/A N/A session player pause N/A N/A N/A N/A lib_mock sp_session_player_play assert_called_once_with N/A session _sp_session 0 N/A N/A N/A self assertEqual N/A N/A session player state N/A N/A spotify PlayerState PAUSED N/A test_player_unload N/A N/A self session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_unload return_value N/A N/A spotify ErrorType OK N/A session N/A N/A tests create_real_session session_lib_mock N/A N/A N/A N/A session player unload N/A N/A N/A N/A lib_mock sp_session_player_unload assert_called_once_with N/A session _sp_session N/A N/A N/A self assertEqual N/A N/A session player state N/A N/A spotify PlayerState UNLOADED N/A test_player_unload_fail_raises_error N/A N/A self session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_unload return_value N/A N/A spotify ErrorType BAD_API_VERSION N/A session N/A N/A tests create_real_session session_lib_mock N/A player_state N/A N/A session player state N/A N/A N/A self assertRaises N/A spotify Error N/A N/A N/A N/A N/A session player unload N/A N/A N/A self assertEqual N/A N/A session player state player_state N/A test_player_prefetch N/A N/A self track_lib_mock session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_prefetch return_value N/A N/A spotify ErrorType OK N/A session N/A N/A tests create_real_session session_lib_mock N/A sp_track N/A N/A N/A spotify ffi cast sp_track * 42 N/A track N/A N/A spotify Track session sp_track sp_track N/A N/A N/A N/A session player prefetch track N/A N/A N/A N/A lib_mock sp_session_player_prefetch assert_called_once_with N/A session _sp_session sp_track N/A N/A N/A mock patch spotify.track.lib spec N/A spotify lib test_player_prefetch_fail_raises_error N/A N/A self track_lib_mock session_lib_mock lib_mock N/A N/A N/A N/A N/A lib_mock sp_session_player_prefetch return_value N/A N/A spotify ErrorType NO_CACHE N/A session N/A N/A tests create_real_session session_lib_mock N/A sp_track N/A N/A N/A spotify ffi cast sp_track * 42 N/A track N/A N/A spotify Track session sp_track sp_track N/A N/A N/A self assertRaises N/A spotify Error N/A N/A N/A N/A N/A session player prefetch track N/A N/A N/A mock patch spotify.track.lib spec N/A spotify lib N/A N/A N/A mock patch spotify.player.lib spec N/A spotify lib N/A N/A mock patch spotify.session.lib spec N/A spotify lib