/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 brzlib/tests/commands/test_pull.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 12:41:27 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521124127-iv8etg0vwymyai6y
s/bzr/brz/ in apport config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from ... import (
 
17
 
 
18
from brzlib import (
18
19
    branch,
19
20
    builtins,
20
 
    )
21
 
from .. import (
22
 
    transport_util,
23
 
    ui_testing,
24
 
    )
 
21
    tests,
 
22
    )
 
23
from brzlib.tests import transport_util
25
24
 
26
25
 
27
26
class TestPull(transport_util.TestCaseWithConnectionHookedTransport):
35
34
 
36
35
        cmd = builtins.cmd_pull()
37
36
        # We don't care about the ouput but 'outf' should be defined
38
 
        cmd.outf = ui_testing.StringIOWithEncoding()
 
37
        cmd.outf = tests.StringIOWrapper()
39
38
        cmd.run(self.get_url('branch1'), directory='branch2')
40
39
        self.assertEqual(1, len(self.connections))
41
40
 
53
52
 
54
53
        pull = builtins.cmd_pull()
55
54
        # We don't care about the ouput but 'outf' should be defined
56
 
        pull.outf = ui_testing.StringIOWithEncoding()
 
55
        pull.outf = tests.StringIOWrapper()
57
56
        pull.run(self.get_url('remote'), directory='local')
58
57
        self.assertEqual(2, len(self.connections))
 
58