#NEWLINE# def test_route_default_deny( self ) : #NEWLINE# #INDENT# self . flask . config [ 'ACL_ROUTE_DEFAULT_STATE' ] = False #NEWLINE# @ self . flask . route ( '/default_deny' ) #NEWLINE# @ self . authz . route_acl ( '' ) #NEWLINE# def default_deny( ) : #NEWLINE# #INDENT# return 'allowed' #NEWLINE# #UNINDENT# with self . client : #NEWLINE# #INDENT# rv = self . client . get ( '/default_deny' , follow_redirects = True ) #NEWLINE# self . assertEqual ( rv . status_code , 401 ) #NEWLINE# self . assertEqual ( rv . data , 'please login' )