~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-24 23:20:14 UTC
  • mfrom: (5365.5.29 2.3-btree-chk-leaf)
  • Revision ID: pqm@pqm.ubuntu.com-20100824232014-nu9owzel2zym2jk2
(jam) Use a custom C type for CHK index entries, saves memory

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
from bzrlib import (
19
19
    branch as _mod_branch,
20
 
    controldir,
 
20
    bzrdir,
21
21
    )
22
22
from bzrlib.tests import TestCaseWithTransport
23
23
 
24
24
 
25
25
class TestReference(TestCaseWithTransport):
26
26
 
27
 
    def get_default_format(self):
28
 
        format = controldir.format_registry.make_bzrdir('1.9')
29
 
        format.set_branch_format(_mod_branch.BzrBranchFormat8())
30
 
        return format
 
27
    def make_branch(self, location, format=None):
 
28
        if format is None:
 
29
            format = bzrdir.format_registry.make_bzrdir('1.9')
 
30
            format.set_branch_format(_mod_branch.BzrBranchFormat8())
 
31
        return TestCaseWithTransport.make_branch(self, location, format=format)
31
32
 
32
33
    def test_no_args_lists(self):
33
34
        branch = self.make_branch('branch')