53
class AnonymousTestBranchFormat(bzrlib.branch.BranchFormat):
54
"""An anonymous branch format (does not have a format string)"""
56
def get_format_string(self):
57
raise NotImplementedError(self.get_format_string)
60
class IdentifiableTestBranchFormat(bzrlib.branch.BranchFormat):
61
"""An identifable branch format (has a format string)"""
63
def get_format_string(self):
64
return "I have an identity"
67
class AnonymousTestRepositoryFormat(repository.RepositoryFormat):
68
"""An anonymous branch format (does not have a format string)"""
70
def get_format_string(self):
71
raise NotImplementedError(self.get_format_string)
74
class IdentifiableTestRepositoryFormat(repository.RepositoryFormat):
75
"""An identifable branch format (has a format string)"""
77
def get_format_string(self):
78
return "I have an identity"
81
class AnonymousTestWorkingTreeFormat(workingtree.WorkingTreeFormat):
82
"""An anonymous branch format (does not have a format string)"""
84
def get_format_string(self):
85
raise NotImplementedError(self.get_format_string)
88
class IdentifiableTestWorkingTreeFormat(workingtree.WorkingTreeFormat):
89
"""An identifable branch format (has a format string)"""
91
def get_format_string(self):
92
return "I have an identity"
95
53
class TestControlDir(TestCaseWithControlDir):
97
55
def skipIfNoWorkingTree(self, a_bzrdir):