/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_command_encoding.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
            self.assertEqual(b'foo', bzr('echo-exact foo'))
59
59
            # Exact should fail to decode the string
60
60
            self.assertRaises(UnicodeEncodeError,
61
 
                bzr,
62
 
                ['echo-exact', u'foo\xb5'])
 
61
                              bzr,
 
62
                              ['echo-exact', u'foo\xb5'])
63
63
            # Previously a non-ascii bytestring was also tested, as 'exact'
64
64
            # outputs bytes untouched, but needed buggy argv parsing to work
65
65
        finally:
90
90
            self.assertEqual(b'foo', bzr('echo-strict foo'))
91
91
            # ascii can't encode \xb5
92
92
            self.assertRaises(UnicodeEncodeError,
93
 
                bzr,
94
 
                ['echo-strict', u'foo\xb5'])
 
93
                              bzr,
 
94
                              ['echo-strict', u'foo\xb5'])
95
95
        finally:
96
96
            plugin_cmds.remove('echo-strict')
97
97
 
120
120
            self.assertEqual(b'foo?', bzr(['echo-replace', u'foo\xb5']))
121
121
        finally:
122
122
            plugin_cmds.remove('echo-replace')
123
 
 
124