#NEWLINE# def test_is_placeholder_is_none_if_unloaded( self , lib_mock ) : #NEWLINE# #INDENT# lib_mock . sp_track_error . return_value = spotify . ErrorType . IS_LOADING #NEWLINE# lib_mock . sp_track_is_loaded . return_value = 0 #NEWLINE# sp_track = spotify . ffi . cast ( 'sp_track *' , 42 ) #NEWLINE# track = spotify . Track ( self . session , sp_track = sp_track ) #NEWLINE# result = sp_track . is_placeholder #NEWLINE# lib_mock . sp_track_is_loaded . assert_called_with ( sp_track ) #NEWLINE# self . assertIsNone ( result )