/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/commands/test_update.py

  • Committer: Jelmer Vernooij
  • Date: 2020-04-05 19:11:34 UTC
  • mto: (7490.7.16 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200405191134-0aebh8ikiwygxma5
Populate the .gitignore file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007, 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2007, 2009, 2010, 2016 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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
 
 
18
 
from bzrlib import (
 
17
from ... import (
19
18
    branch,
20
19
    builtins,
21
 
    tests,
22
 
    )
23
 
from bzrlib.tests import transport_util
 
20
    )
 
21
from .. import (
 
22
    transport_util,
 
23
    ui_testing,
 
24
    )
24
25
 
25
26
 
26
27
class TestUpdate(transport_util.TestCaseWithConnectionHookedTransport):
38
39
 
39
40
        update = builtins.cmd_update()
40
41
        # update needs the encoding from outf to print URLs
41
 
        update.outf = tests.StringIOWrapper()
 
42
        update.outf = ui_testing.StringIOWithEncoding()
42
43
        # update calls it 'dir' where other commands calls it 'directory'
43
44
        update.run(dir='local')
44
 
        self.assertEquals(1, len(self.connections))
45
 
 
 
45
        self.assertEqual(1, len(self.connections))