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