Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
PloneLanguageTool.tests.test_languagetool.TestLanguageToolSettings Class Reference

List of all members.

Public Member Functions

def afterSetUp
def testLanguageToolType
def testSetLanguageSettings

Public Attributes

 id
 ltool

Detailed Description

Definition at line 15 of file test_languagetool.py.


Member Function Documentation

Definition at line 17 of file test_languagetool.py.

00017 
00018     def afterSetUp(self):
00019         self.id = LanguageTool.id
00020         self.ltool = self.portal._getOb(self.id)

Definition at line 21 of file test_languagetool.py.

00021 
00022     def testLanguageToolType(self):
00023         self.failUnless(self.ltool.meta_type == LanguageTool.meta_type)

Definition at line 24 of file test_languagetool.py.

00024 
00025     def testSetLanguageSettings(self):
00026         defaultLanguage = 'de'
00027         supportedLanguages = ['en','de','no']
00028         self.ltool.manage_setLanguageSettings(defaultLanguage, supportedLanguages,
00029                                    setCookieN=False, setRequestN=False,
00030                                    setPathN=False, setForcelanguageUrls=False,
00031                                    setAllowContentLanguageFallback=True,
00032                                    setUseCombinedLanguageCodes=True,
00033                                    startNeutral=False, displayFlags=False)
00034 
00035         self.failUnless(self.ltool.getDefaultLanguage()==defaultLanguage)
00036         self.failUnless(self.ltool.getSupportedLanguages()==supportedLanguages)
00037         self.failUnless(self.ltool.use_cookie_negotiation==False)
00038         self.failUnless(self.ltool.use_request_negotiation==False)
00039         self.failUnless(self.ltool.use_path_negotiation==False)
00040         self.failUnless(self.ltool.force_language_urls==False)
00041         self.failUnless(self.ltool.allow_content_language_fallback==True)
00042         self.failUnless(self.ltool.use_combined_language_codes==True)
00043         self.failUnless(self.ltool.startNeutral()==False)
00044         self.failUnless(self.ltool.showFlags()==False)
00045 


Member Data Documentation

Definition at line 18 of file test_languagetool.py.

Definition at line 19 of file test_languagetool.py.


The documentation for this class was generated from the following file: