/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/transport_util.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 23:15:15 UTC
  • mfrom: (7180 work)
  • mto: This revision was merged to the branch mainline in revision 7183.
  • Revision ID: jelmer@jelmer.uk-20181116231515-zqd2yn6kj8lfydyp
Merge trunk.

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 features
18
 
from . import TestCaseWithTransport
19
17
from ..transport import Transport
20
18
 
21
19
# SFTPTransport is the only bundled transport that properly counts connections
22
20
# at the moment.
23
21
from . import test_sftp_transport
24
22
 
 
23
 
25
24
class TestCaseWithConnectionHookedTransport(test_sftp_transport.TestCaseWithSFTPServer):
26
25
 
27
26
    def setUp(self):
30
29
 
31
30
    def start_logging_connections(self):
32
31
        Transport.hooks.install_named_hook('post_connect',
33
 
            self.connections.append, None)
 
32
                                           self.connections.append, None)
34
33
 
35
34
    def reset_connections(self):
36
35
        self.connections = []