~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2012-02-14 17:22:37 UTC
  • mfrom: (6466 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6468.
  • Revision ID: v.ladeuil+lp@free.fr-20120214172237-7dv7er3n4uy8d5m4
Merge trunk

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")