#NEWLINE# def test_invalid_roles( client ) : #NEWLINE# #INDENT# um = current_app . user_manager #NEWLINE# User = um . db_adapter . UserClass #NEWLINE# user007 = User . query . filter ( ( User . username == 'user007' ) ) . first ( ) #NEWLINE# if ( not user007 ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# print ( 'test_invalid_roles' ) #NEWLINE# um . enable_username = True #NEWLINE# client . login ( username = 'user1' , password = 'Password1' ) #NEWLINE# url = url_for ( 'special_page' ) #NEWLINE# response = client . get_invalid_page ( um , 'You do not have permission to access' ) #NEWLINE# client . logout ( )