~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_i18n.py

(jr) Turn on translations for help topics. (Jonathan Riddell)

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
        except errors.NotBranchError,e:
126
126
            err = str(e)
127
127
        self.assertContainsRe(err, u"zz\xe5{{Not a branch: .*}}".encode("utf-8"))
 
128
    def test_topic_help_translation(self):
 
129
        """does topic help get translated?"""
 
130
        from bzrlib import help
 
131
        i18n.install()
 
132
        self.overrideAttr(i18n, '_translations', ZzzTranslations())
 
133
        from StringIO import StringIO
 
134
        out = StringIO()
 
135
        help.help("authentication", out)
 
136
        self.assertContainsRe(out.getvalue(), "zz\xe5{{Authentication Settings")