/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_help.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-08-21 09:32:52 UTC
  • mfrom: (7065.3.15 python-bundle)
  • Revision ID: breezy.the.bot@gmail.com-20180821093252-dhir83sygqwzbv77
Fix some bundle-related tests on Python 3.

Merged from https://code.launchpad.net/~jelmer/brz/python-bundle/+merge/353123

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
        self.overrideAttr(i18n, '_translations', ZzzTranslations())
188
188
 
189
189
    def test_help_command_utf8(self):
190
 
        out, err = self.run_bzr(["help", "push"], encoding="utf-8")
 
190
        out, err = self.run_bzr_raw(["help", "push"], encoding="utf-8")
191
191
        self.assertContainsRe(out, b"zz\xc3\xa5{{:See also:")
192
192
 
193
193
    def test_help_switch_utf8(self):
194
 
        out, err = self.run_bzr(["push", "--help"], encoding="utf-8")
 
194
        out, err = self.run_bzr_raw(["push", "--help"], encoding="utf-8")
195
195
        self.assertContainsRe(out, b"zz\xc3\xa5{{:See also:")
196
196
 
197
197
    def test_help_command_ascii(self):
198
 
        out, err = self.run_bzr(["help", "push"], encoding="ascii")
 
198
        out, err = self.run_bzr_raw(["help", "push"], encoding="ascii")
199
199
        self.assertContainsRe(out, b"zz\\?{{:See also:")
200
200
 
201
201
    def test_help_switch_ascii(self):
202
 
        out, err = self.run_bzr(["push", "--help"], encoding="ascii")
 
202
        out, err = self.run_bzr_raw(["push", "--help"], encoding="ascii")
203
203
        self.assertContainsRe(out, b"zz\\?{{:See also:")