~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/repository_implementations/test_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-25 09:23:03 UTC
  • mfrom: (2485.7.2 per-repository-test-setup)
  • Revision ID: pqm@pqm.ubuntu.com-20070625092303-yr8bqbke8snrmkig
(robertc) Relocate TestCaseWithRepository to be more central.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
from bzrlib.inventory import Inventory, InventoryDirectory
30
30
from bzrlib.revision import NULL_REVISION
31
31
from bzrlib.tests import TestCaseWithTransport, TestSkipped
32
 
from bzrlib.tests.bzrdir_implementations.test_bzrdir import TestCaseWithBzrDir
 
32
from bzrlib.tests.repository_implementations import TestCaseWithRepository
33
33
from bzrlib.transport import get_transport
34
34
from bzrlib.upgrade import upgrade
35
35
from bzrlib.workingtree import WorkingTree
36
36
 
37
37
 
38
 
class TestCaseWithRepository(TestCaseWithBzrDir):
39
 
 
40
 
    def make_repository(self, relpath, format=None):
41
 
        if format is None:
42
 
            # Create a repository of the type we are trying to test.
43
 
            made_control = self.make_bzrdir(relpath)
44
 
            return self.repository_format.initialize(made_control)
45
 
        else:
46
 
            return super(TestCaseWithRepository, self).make_repository(
47
 
                relpath, format)
48
 
 
49
 
 
50
38
class TestRepositoryMakeBranchAndTree(TestCaseWithRepository):
51
39
 
52
40
    def test_repository_format(self):