~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Patch Queue Manager
  • Date: 2012-01-23 15:31:35 UTC
  • mfrom: (6443.1.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20120123153135-8v3r3z1lx055vmpl
(jelmer) Merge the 2.5 series branch. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Black-box tests for bzr branches."""
19
19
 
20
 
from bzrlib.branch import BranchReferenceFormat
21
20
from bzrlib.tests import TestCaseWithTransport
22
21
 
23
22
 
73
72
        t = self.make_repository('a', format='development-colo')
74
73
        t.bzrdir.create_branch(name='another')
75
74
        branch = t.bzrdir.create_branch(name='colocated')
76
 
        BranchReferenceFormat().initialize(t.bzrdir, target_branch=branch)
 
75
        t.bzrdir.set_branch_reference(target_branch=branch)
77
76
        out, err = self.run_bzr('branches a')
78
77
        self.assertEquals(out, "  another\n"
79
78
                               "* colocated\n")