~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_controldir/test_controldir.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-08 00:53:45 UTC
  • mto: This revision was merged to the branch mainline in revision 5705.
  • Revision ID: jelmer@samba.org-20110308005345-bkc4k0acpm61js2v
Fix imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    )
51
51
 
52
52
 
53
 
class AnonymousTestBranchFormat(bzrlib.branch.BranchFormat):
54
 
    """An anonymous branch format (does not have a format string)"""
55
 
 
56
 
    def get_format_string(self):
57
 
        raise NotImplementedError(self.get_format_string)
58
 
 
59
 
 
60
 
class IdentifiableTestBranchFormat(bzrlib.branch.BranchFormat):
61
 
    """An identifable branch format (has a format string)"""
62
 
 
63
 
    def get_format_string(self):
64
 
        return "I have an identity"
65
 
 
66
 
 
67
 
class AnonymousTestRepositoryFormat(repository.RepositoryFormat):
68
 
    """An anonymous branch format (does not have a format string)"""
69
 
 
70
 
    def get_format_string(self):
71
 
        raise NotImplementedError(self.get_format_string)
72
 
 
73
 
 
74
 
class IdentifiableTestRepositoryFormat(repository.RepositoryFormat):
75
 
    """An identifable branch format (has a format string)"""
76
 
 
77
 
    def get_format_string(self):
78
 
        return "I have an identity"
79
 
 
80
 
 
81
 
class AnonymousTestWorkingTreeFormat(workingtree.WorkingTreeFormat):
82
 
    """An anonymous branch format (does not have a format string)"""
83
 
 
84
 
    def get_format_string(self):
85
 
        raise NotImplementedError(self.get_format_string)
86
 
 
87
 
 
88
 
class IdentifiableTestWorkingTreeFormat(workingtree.WorkingTreeFormat):
89
 
    """An identifable branch format (has a format string)"""
90
 
 
91
 
    def get_format_string(self):
92
 
        return "I have an identity"
93
 
 
94
 
 
95
53
class TestControlDir(TestCaseWithControlDir):
96
54
 
97
55
    def skipIfNoWorkingTree(self, a_bzrdir):