#NEWLINE# def test_home_slug_not_accessible( self ) : #NEWLINE# #INDENT# with self . settings ( CMS_PERMISSION = False ) : #NEWLINE# #INDENT# page = create_page ( 'page' , 'nav_playground.html' , 'en' , published = True ) #NEWLINE# self . assertEqual ( page . get_absolute_url ( 'en' ) , '/en/' ) #NEWLINE# resp = self . client . get ( '/en/' ) #NEWLINE# self . assertEqual ( resp . status_code , HttpResponse . status_code ) #NEWLINE# resp = self . client . get ( '/en/page/' ) #NEWLINE# self . assertEqual ( page . status_code , HttpResponseNotFound . status_code )