#NEWLINE# def test_redirect_fallback_flatpage_special_chars( self ) : #NEWLINE# #INDENT# 'A flatpage with special chars in the URL can be served by the fallback middleware and should add a slash' #NEWLINE# fp = FlatPage . objects . create ( url = '/some.very_special~chars-here/' , title = 'A very special page' , content = "Isn't it special!" , enable_comments = False , registration_required = False ) #NEWLINE# fp . sites . add ( 1 ) #NEWLINE# response = self . client . get ( '/some.very_special~chars-here' ) #NEWLINE# self . assertRedirects ( response , '/some.very_special~chars-here/' , status_code = 301 )