#NEWLINE# def test_other_addon_redirect_download( self ) : #NEWLINE# #INDENT# url = '/project/{0}/mycooladdon/files/{1}/download/' . format ( self . project . _id , self . path ) #NEWLINE# res = self . app . get ( url , auth = self . user . auth ) #NEWLINE# assert_equal ( res . status_code , 301 ) #NEWLINE# expected_url = self . project . web_url_for ( 'addon_view_or_download_file' , path = expected_url . path , action = 'download' , provider = 'mycooladdon' ) #NEWLINE# assert_urls_equal ( res . location , expected_url )