#NEWLINE# def test_pf_autoscale_api_admin_perms_no_settings( self ) : #NEWLINE# #INDENT# self . db . api_settings . remove ( ) #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/' ) #NEWLINE# assert ( response . _status_code == 302 ) , ( 'Invalid response code %s' % response . _status_code ) #NEWLINE# response = c . get ( '/autoscale/' , follow_redirects = True ) #NEWLINE# #UNINDENT# self . assertIn ( 'Product not found, please check the URL and try again' , response . data , 'Did not find correct HTML on page' )