~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_i18n.py

add a test for topic help translations

Show diffs side-by-side

added added

removed removed

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