#NEWLINE# def test_redirect_fallback_flatpage_root( self ) : #NEWLINE# #INDENT# 'A flatpage at / should not cause a redirect loop when APPEND_SLASH is set' #NEWLINE# fp = FlatPage . objects . create ( url = '/' , title = 'Root' , content = 'Root' , enable_comments = False , registration_required = False ) #NEWLINE# fp . sites . add ( 1 ) #NEWLINE# response = self . client . get ( '/' ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertContains ( fp , '<p>Root</p>' )