#NEWLINE# def test_pf_autoscale_manage_user_perms( self ) : #NEWLINE# #INDENT# with self . app as c : #NEWLINE# #INDENT# with c . session_transaction ( ) as sess : #NEWLINE# #INDENT# self . setup_user_login ( sess ) #NEWLINE# #UNINDENT# response = c . get ( '/autoscale/manage' ) #NEWLINE# #UNINDENT# assert ( response . _status_code == 302 ) , ( 'Invalid response code %s' % response . _status_code ) #NEWLINE# location = response . headers . get ( 'Location' ) #NEWLINE# o = urlparse . urlparse ( location ) #NEWLINE# self . assertEqual ( o . path , '/' , ( 'Invalid redirect location %s, expected "/"' % o . path ) )