~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-01-12 08:33:58 UTC
  • mfrom: (4948.3.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100112083358-3q0c7ngiwtja7qba
(igc) branch --bind option

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
        self.assertEqual('', out)
210
210
        self.assertEqual('bzr: ERROR: Already a branch: "b".\n', err)
211
211
 
 
212
    def test_branch_bind(self):
 
213
        self.example_branch('a')
 
214
        out, err = self.run_bzr('branch a b --bind')
 
215
        self.assertEndsWith(err, "New branch bound to a\n")
 
216
        b = branch.Branch.open('b')
 
217
        self.assertEndsWith(b.get_bound_location(), '/a/')
 
218
 
212
219
 
213
220
class TestBranchStacked(ExternalBase):
214
221
    """Tests for branch --stacked"""