~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_i18n.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-14 15:41:39 UTC
  • mto: This revision was merged to the branch mainline in revision 6139.
  • Revision ID: jriddell@canonical.com-20110914154139-4m2a2zcs08ycvqvc
add assert to tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        self.addCleanup(i18n.install)
102
102
        self.enableI18n()
103
103
        i18n.install('nl:fy')
 
104
        self.assertTrue(isinstance(i18n._translations, i18n._gettext.NullTranslations))
104
105
 
105
106
    def test_no_env_variables(self):
106
107
        self.addCleanup(i18n.install)
110
111
        self.overrideEnv('LC_MESSAGES', None)
111
112
        self.overrideEnv('LANG', None)
112
113
        i18n.install()
 
114
        self.assertTrue(isinstance(i18n._translations, i18n._gettext.NullTranslations))
113
115
 
114
116
class TestTranslate(tests.TestCaseWithTransport):
115
117