#NEWLINE# def test_pf_verbs_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# result = c . get ( '/manage/verbs' ) #NEWLINE# #UNINDENT# assert ( result . _status_code == 302 ) , ( 'Invalid response code %s' % result . _status_code ) #NEWLINE# request_path = urlparse . urlparse ( result . headers . get ( 'Location' ) ) . path #NEWLINE# self . assertEqual ( request_path , '/' , ( 'Invalid redirect location %s, expected "/"' % request_path ) )