~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2012-02-21 12:53:02 UTC
  • mto: This revision was merged to the branch mainline in revision 6519.
  • Revision ID: jelmer@samba.org-20120221125302-uhxdc14iays7k5wq
Add Tree.iter_child_entries.

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.bzrdir import BzrDir
21
20
from bzrlib.tests import TestCaseWithTransport
22
21
 
23
22
 
77
76
        out, err = self.run_bzr('branches a')
78
77
        self.assertEquals(out, "  another\n"
79
78
                               "* colocated\n")
80
 
 
81
 
    def test_shared_repos(self):
82
 
        self.make_repository('a', shared=True)
83
 
        BzrDir.create_branch_convenience('a/branch1')
84
 
        b = BzrDir.create_branch_convenience('a/branch2')
85
 
        b.create_checkout(lightweight=True, to_location='b')
86
 
        out, err = self.run_bzr('branches b')
87
 
        self.assertEquals(out, "  branch1\n"
88
 
                               "* branch2\n")
89
 
 
90
 
    def test_standalone_branch(self):
91
 
        self.make_branch('a')
92
 
        out, err = self.run_bzr('branches a')
93
 
        self.assertEquals(out, "* (default)\n")