#NEWLINE# @ mock . patch ( 'spotify.utils.load' ) #NEWLINE# def test_load( self , load_mock , lib_mock ) : #NEWLINE# #INDENT# sp_track = spotify . ffi . cast ( 'sp_track *' , 42 ) #NEWLINE# track = spotify . Track ( self . session , sp_track = sp_track ) #NEWLINE# track . load ( 10 ) #NEWLINE# load_mock . assert_called_with ( self . session , track , timeout = 10 )