/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_cat.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:
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
16
16
 
17
17
import sys
18
18
 
19
 
from bzrlib.builtins import cmd_cat
20
 
from bzrlib.tests import StringIOWrapper
21
 
from bzrlib.tests.transport_util import TestCaseWithConnectionHookedTransport
 
19
from brzlib.builtins import cmd_cat
 
20
from brzlib.tests import StringIOWrapper
 
21
from brzlib.tests.transport_util import TestCaseWithConnectionHookedTransport
22
22
 
23
23
 
24
24
class TestCat(TestCaseWithConnectionHookedTransport):
33
33
        # FIXME: sftp raises ReadError instead of NoSuchFile when probing for
34
34
        # branch/foo/.bzr/branch-format when used with the paramiko test
35
35
        # server.
36
 
        from bzrlib.tests import TestSkipped
 
36
        from brzlib.tests import TestSkipped
37
37
        raise TestSkipped('SFTPTransport raises incorrect exception'
38
38
                          ' when reading from paramiko server')
39
39
        wt1 = self.make_branch_and_tree('branch')
45
45
 
46
46
        cmd = cmd_cat()
47
47
        cmd.run(self.get_url('branch/foo'))
48
 
        self.assertEquals(1, len(self.connections))
49
 
        self.assertEquals('foo', self.outf.getvalue())
 
48
        self.assertEqual(1, len(self.connections))
 
49
        self.assertEqual('foo', self.outf.getvalue())
50
50