/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 bzrlib/tests/branch_implementations/test_bound_sftp.py

  • Committer: Aaron Bentley
  • Date: 2006-05-20 17:51:13 UTC
  • mfrom: (1718 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1727.
  • Revision ID: aaron.bentley@utoronto.ca-20060520175113-4549e0023f9210bf
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
import os
21
21
 
22
 
 
 
22
import bzrlib
23
23
from bzrlib.branch import Branch
24
24
from bzrlib.bzrdir import (BzrDir,
25
25
                           BzrDirFormat,
56
56
 
57
57
        return b_base, wt_child
58
58
 
 
59
    def tearDown(self):
 
60
        self.sftp_base = None
 
61
        bzrlib.transport.sftp.clear_connection_cache()
 
62
        super(BoundSFTPBranch, self).tearDown()
 
63
 
59
64
    def test_simple_binding(self):
60
65
        self.build_tree(['base/', 'base/a', 'base/b', 'child/'])
61
66
        wt_base = BzrDir.create_standalone_workingtree('base')
226
231
        # by pushing the new change to base
227
232
        wt_child.branch.bind(sftp_b_base)
228
233
 
229
 
        self.assertEqual(['r@b-1', 'r@b-2', 'r@c-3'],
 
234
        self.assertEqual(['r@b-1', 'r@c-2', 'r@c-3'],
230
235
                b_base.revision_history())
231
 
        self.assertEqual(['r@b-1', 'r@b-2', 'r@c-3'],
 
236
        self.assertEqual(['r@b-1', 'r@c-2', 'r@c-3'],
232
237
                wt_child.branch.revision_history())
233
238
 
234
239
    def test_bind_parent_ahead(self):