#NEWLINE# def test_redirect_to_empty( self ) : #NEWLINE# #INDENT# class HandlerWithRedirectTo ( RequestHandler ) : #NEWLINE# #INDENT# def get( self , **kwargs ) : #NEWLINE# #INDENT# return self . redirect_to ( 'home' , _empty = True ) #NEWLINE# #UNINDENT# #UNINDENT# app = Tipfy ( rules = [ Rule ( '/' , name = 'home' , handler = AllMethodsHandler ) , Rule ( '/redirect-me' , name = 'redirect' , handler = HandlerWithRedirectTo ) ] ) #NEWLINE# client = app . get_test_client ( ) #NEWLINE# response = client . get ( '/redirect-me' , follow_redirects = False ) #NEWLINE# self . assertEqual ( self . data , '' )