Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_gettext.GettextBaseTest Class Reference
Inheritance diagram for test.test_gettext.GettextBaseTest:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def setUp
def tearDown

Public Attributes

 env

Detailed Description

Definition at line 63 of file test_gettext.py.


Member Function Documentation

Reimplemented in test.test_gettext.WeirdMetadataTest, test.test_gettext.UnicodeTranslationsTest, test.test_gettext.PluralFormsTestCase, test.test_gettext.GettextTestCase2, and test.test_gettext.GettextTestCase1.

Definition at line 64 of file test_gettext.py.

00064 
00065     def setUp(self):
00066         if not os.path.isdir(LOCALEDIR):
00067             os.makedirs(LOCALEDIR)
00068         with open(MOFILE, 'wb') as fp:
00069             fp.write(base64.decodebytes(GNU_MO_DATA))
00070         with open(UMOFILE, 'wb') as fp:
00071             fp.write(base64.decodebytes(UMO_DATA))
00072         with open(MMOFILE, 'wb') as fp:
00073             fp.write(base64.decodebytes(MMO_DATA))
00074         self.env = support.EnvironmentVarGuard()
00075         self.env['LANGUAGE'] = 'xx'
00076         gettext._translations.clear()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 77 of file test_gettext.py.

00077 
00078     def tearDown(self):
00079         self.env.__exit__()
00080         del self.env
00081         shutil.rmtree(os.path.split(LOCALEDIR)[0])
00082 

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 73 of file test_gettext.py.


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