/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: Jelmer Vernooij
  • Date: 2018-11-11 04:08:32 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181111040832-nsljjynzzwmznf3h
Run autopep8.

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