#NEWLINE# def test_pf_autoscale_manage_api_edit_admin_perms( self ) : #NEWLINE# #INDENT# api_id = self . setup_useable_api_call ( ) #NEWLINE# with self . app as c : #NEWLINE# #INDENT# with c . session_transaction ( ) as sess : #NEWLINE# #INDENT# self . setup_admin_login ( sess ) #NEWLINE# #UNINDENT# response = c . get ( ( '/autoscale/manage/api/edit/%s' % c ) ) #NEWLINE# #UNINDENT# assert ( response . _status_code == 200 ) , ( 'Invalid response code %s' % response . _status_code ) #NEWLINE# self . assertIn ( 'Edit API Call' , response . data , 'Invalid HTML found when browsing to edit' )