~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:49:00 UTC
  • mto: This revision was merged to the branch mainline in revision 6139.
  • Revision ID: jriddell@canonical.com-20110914154900-6rmjk5w4deqvbjfe
no need to override twice

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
        """do errors get translated?"""
124
124
        err = None
125
125
        tree = self.make_branch_and_tree('.')
126
 
        self.overrideAttr(i18n, '_translations', ZzzTranslations())
127
126
        try:
128
127
            workingtree.WorkingTree.open('./foo')
129
128
        except errors.NotBranchError,e:
134
133
    def test_topic_help_translation(self):
135
134
        """does topic help get translated?"""
136
135
        from bzrlib import help
137
 
        self.overrideAttr(i18n, '_translations', ZzzTranslations())
138
136
        from StringIO import StringIO
139
137
        out = StringIO()
140
138
        help.help("authentication", out)