~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
367
367
        result.report_results(verbose=False)
368
368
 
369
369
    def test_get_commit_builder(self):
370
 
        self.assertIsInstance(self.make_branch(".").get_commit_builder([]), 
371
 
            repository.CommitBuilder)
 
370
        branch = self.make_branch(".")
 
371
        branch.lock_write()
 
372
        builder = branch.get_commit_builder([])
 
373
        self.assertIsInstance(builder, repository.CommitBuilder)
 
374
        branch.repository.commit_write_group()
 
375
        branch.unlock()
372
376
 
373
377
    def test_generate_revision_history(self):
374
378
        """Create a fake revision history easily."""