#NEWLINE# def test_url_es( self ) : #NEWLINE# #INDENT# request = self . rf . get ( '/es/' ) #NEWLINE# context = RequestContext ( request ) #NEWLINE# self . assertEqual ( request [ 'LANGUAGE_CODE' ] , 'es' ) #NEWLINE# self . assertEqual ( context [ 'mothertongue_path_lang_prefix' ] , '/es/' ) #NEWLINE# self . assertEqual ( context [ 'request' ] . META [ 'PATH_INFO' ] , '/es/' ) #NEWLINE# self . assertNotEqual ( context [ 'mothertongue_language_nav' ] , '' ) #NEWLINE# self . assertEqual ( context [ 'LANGUAGES' ] , settings . LANGUAGES )