/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/commands/test_init_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

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
 
 
18
 
from bzrlib import tests
19
 
from bzrlib.builtins import cmd_init_repository
20
 
from bzrlib.tests.transport_util import TestCaseWithConnectionHookedTransport
21
 
 
22
 
 
23
 
class TestInitRepository(TestCaseWithConnectionHookedTransport):
 
17
from ...builtins import cmd_init_repository
 
18
from .. import (
 
19
    transport_util,
 
20
    ui_testing,
 
21
    )
 
22
 
 
23
 
 
24
class TestInitRepository(transport_util.TestCaseWithConnectionHookedTransport):
24
25
 
25
26
    def setUp(self):
26
27
        super(TestInitRepository, self).setUp()
29
30
    def test_init_repository(self):
30
31
        cmd = cmd_init_repository()
31
32
        # We don't care about the ouput but 'outf' should be defined
32
 
        cmd.outf = tests.StringIOWrapper()
 
33
        cmd.outf = ui_testing.StringIOWithEncoding()
33
34
        cmd.run(self.get_url())
34
35
        self.assertEqual(1, len(self.connections))
35
36