#NEWLINE# def test_pf_autoscale_manage_api_mark_tested( 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/confirm/%s' % api_id ) , follow_redirects = True ) #NEWLINE# #UNINDENT# self . assertIn ( 'API call was successfully updated' , response . data , 'Invalid response found after marking tested' ) #NEWLINE# check_call = self . db . autoscale . find_one ( { #NEWLINE# #INDENT# '_id' : ObjectId ( api_id ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert check_call . get ( 'tested' ) , 'API call was not saved as tested'