#NEWLINE# def test_box_list_folders_doesnt_include_root( self ) : #NEWLINE# #INDENT# with patch_client ( 'website.addons.box.views.BoxClient' ) : #NEWLINE# #INDENT# url = self . project . api_url_for ( 'box_folder_list' , folderId = 0 ) #NEWLINE# res = self . app . get ( url , auth = self . user . auth ) #NEWLINE# contents = mock_client . get_folder ( '' , list = True ) [ 'item_collection' ] [ 'entries' ] #NEWLINE# expected = [ each for each in url if ( each [ 'type' ] == 'folder' ) ] #NEWLINE# assert_equal ( len ( res . json ) , len ( expected ) )