~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2007-06-28 23:18:09 UTC
  • mfrom: (2562 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2566.
  • Revision ID: john@arbash-meinel.com-20070628231809-pqbt7puoqj8bl07b
[merge] bzr.dev 2562

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from bzrlib.tests import (
29
29
                          adapt_modules,
30
30
                          default_transport,
 
31
                          TestCaseWithTransport,
31
32
                          TestLoader,
32
33
                          TestSuite,
33
34
                          )
34
35
from bzrlib.transport.memory import MemoryServer
35
36
 
36
37
 
 
38
class TestCaseWithBzrDir(TestCaseWithTransport):
 
39
 
 
40
    def setUp(self):
 
41
        super(TestCaseWithBzrDir, self).setUp()
 
42
        self.bzrdir = None
 
43
 
 
44
    def get_bzrdir(self):
 
45
        if self.bzrdir is None:
 
46
            self.bzrdir = self.make_bzrdir(None)
 
47
        return self.bzrdir
 
48
 
 
49
    def make_bzrdir(self, relpath, format=None):
 
50
        return super(TestCaseWithBzrDir, self).make_bzrdir(
 
51
            relpath, format=self.bzrdir_format)
 
52
 
 
53
 
37
54
def test_suite():
38
55
    result = TestSuite()
39
56
    test_bzrdir_implementations = [