#NEWLINE# def test_is_loaded( self , lib_mock ) : #NEWLINE# #INDENT# lib_mock . sp_track_is_loaded . return_value = 1 #NEWLINE# sp_track = spotify . ffi . cast ( 'sp_track *' , 42 ) #NEWLINE# track = spotify . Track ( self . session , sp_track = self ) #NEWLINE# result = track . is_loaded #NEWLINE# lib_mock . sp_track_is_loaded . assert_called_once_with ( sp_track ) #NEWLINE# self . assertTrue ( result )