/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: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for the Command.encoding_type interface."""
18
18
 
19
 
from breezy.tests import TestCase
20
 
from breezy.commands import Command, register_command, plugin_cmds
 
19
from .. import TestCaseWithMemoryTransport
 
20
from ...commands import Command, register_command, plugin_cmds
21
21
 
22
22
 
23
23
class cmd_echo_exact(Command):
45
45
    encoding_type = 'replace'
46
46
 
47
47
 
48
 
class TestCommandEncoding(TestCase):
 
48
class TestCommandEncoding(TestCaseWithMemoryTransport):
49
49
 
50
50
    def test_exact(self):
51
51
        def bzr(*args, **kwargs):
 
52
            kwargs['encoding'] = 'ascii'
52
53
            return self.run_bzr(*args, **kwargs)[0]
53
54
 
54
55
        register_command(cmd_echo_exact)