~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branchbuilder.py

  • Committer: Robert Collins
  • Date: 2007-04-27 06:16:29 UTC
  • mto: (2495.3.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2498.
  • Revision ID: robertc@robertcollins.net-20070427061629-hqnq6rocm9dgljhx
Add a format parameter to BranchBuilder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
            (0, _mod_revision.NULL_REVISION),
43
43
            branch.last_revision_info())
44
44
 
 
45
    def test_format(self):
 
46
        """Making a BranchBuilder with a format option sets the branch type."""
 
47
        builder = BranchBuilder(self.get_transport(), format='dirstate-tags')
 
48
        branch = builder.get_branch()
 
49
        self.assertIsInstance(branch, _mod_branch.BzrBranch6)
 
50
 
45
51
    def test_build_one_commit(self):
46
52
        """doing build_commit causes a commit to happen."""
47
53
        builder = BranchBuilder(self.get_transport().clone('foo'))