~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_i18n.py

  • Committer: Martin Pool
  • Date: 2011-07-04 21:10:37 UTC
  • mto: (6034.1.1 filter-tree)
  • mto: This revision was merged to the branch mainline in revision 6035.
  • Revision ID: mbp@canonical.com-20110704211037-ro3417imj3oqnqxp
Support exporting tarballs from ContentFilterTree

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from bzrlib import i18n, tests
20
20
 
21
21
 
 
22
 
 
23
 
22
24
class ZzzTranslations(object):
23
25
    """Special Zzz translation for debugging i18n stuff.
24
26
 
89
91
    def test_multiline(self):
90
92
        self.assertEqual(u"zz{{spam\nham}}\n\nzz{{eggs\n}}",
91
93
                         i18n.gettext_per_paragraph("spam\nham\n\neggs\n"))
92
 
 
93
 
 
94
 
class TestInstall(tests.TestCase):
95
 
 
96
 
    def test_custom_languages(self):
97
 
        self.addCleanup(i18n.install)
98
 
        i18n.install('nl:fy')
99
 
 
100
 
    def test_no_env_variables(self):
101
 
        self.addCleanup(i18n.install)
102
 
        self.overrideEnv('LANGUAGE', None)
103
 
        self.overrideEnv('LC_ALL', None)
104
 
        self.overrideEnv('LC_MESSAGES', None)
105
 
        self.overrideEnv('LANG', None)
106
 
        i18n.install()