#NEWLINE# def test_language_change( self ) : #NEWLINE# #INDENT# superuser = self . get_superuser ( ) #NEWLINE# with self . login_user_context ( superuser ) : #NEWLINE# #INDENT# page_data = self . get_new_page_data ( ) #NEWLINE# self . client . post ( URL_CMS_PAGE_ADD , page_data ) #NEWLINE# pk = Page . objects . all ( ) [ 0 ] . pk #NEWLINE# response = self . client . get ( ( URL_CMS_PAGE_CHANGE % pk ) , { #NEWLINE# #INDENT# 'language' : 'en' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# response = self . client . get ( ( URL_CMS_PAGE_CHANGE % pk ) , { #NEWLINE# #INDENT# 'language' : 'de' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , 200 )