#NEWLINE# @ pytest . mark . parametrize ( 'action' , [ 'submit' , 'submit_pkg_info' ] ) #NEWLINE# def test_removed_upload_apis( webtest , action ) : #NEWLINE# #INDENT# resp = webtest . post ( '/pypi?:action={}' . format ( action ) , status = 410 ) #NEWLINE# assert ( resp . status == '410 This API is no longer supported, instead simply upload the file.' )