#NEWLINE# def test_pf_autoscale_manage_api_edit_admin_perms_with_vars( self ) : #NEWLINE# #INDENT# self . setup_useable_api_call_with_variables ( ) #NEWLINE# call = self . db . autoscale . find_one ( ) #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' % call . get ( '_id' ) ) ) #NEWLINE# #UNINDENT# self . assertIn ( 'Edit API Call' , response . data , 'Invalid HTML found when browsing to edit' ) #NEWLINE# self . assertIn ( call . get ( 'title' ) , response . data , 'Could not find correct title in edit form' ) #NEWLINE# self . assertIn ( call . get ( 'doc_url' ) , response . data , 'Could not find correct Document URL in edit form' )