Back to index

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

List of all members.

Public Member Functions

def setUp
def test_unicode_msgid
def test_unicode_msgstr
def tearDown

Public Attributes

 t
 env

Private Attributes

 _

Detailed Description

Definition at line 294 of file test_gettext.py.


Member Function Documentation

Reimplemented from test.test_gettext.GettextBaseTest.

Definition at line 295 of file test_gettext.py.

00295 
00296     def setUp(self):
00297         GettextBaseTest.setUp(self)
00298         with open(UMOFILE, 'rb') as fp:
00299             self.t = gettext.GNUTranslations(fp)
00300         self._ = self.t.gettext

Here is the caller graph for this function:

def test.test_gettext.GettextBaseTest.tearDown (   self) [inherited]

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:

Definition at line 301 of file test_gettext.py.

00301 
00302     def test_unicode_msgid(self):
00303         unless = self.assertTrue
00304         unless(isinstance(self._(''), str))
00305         unless(isinstance(self._(''), str))

Here is the call graph for this function:

Definition at line 306 of file test_gettext.py.

00306 
00307     def test_unicode_msgstr(self):
00308         eq = self.assertEqual
00309         eq(self._('ab\xde'), '\xa4yz')
00310 

Here is the call graph for this function:


Member Data Documentation

Definition at line 299 of file test_gettext.py.

Definition at line 73 of file test_gettext.py.

Definition at line 298 of file test_gettext.py.


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