39
class AnonymousTestBranchFormat(bzrlib.branch.BranchFormat):
40
"""An anonymous branch format (does not have a format string)"""
42
def get_format_string(self):
43
raise NotImplementedError(self.get_format_string)
46
class IdentifiableTestBranchFormat(bzrlib.branch.BranchFormat):
47
"""An identifable branch format (has a format string)"""
49
def get_format_string(self):
50
return "I have an identity"
53
class AnonymousTestRepositoryFormat(repository.RepositoryFormat):
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 IdentifiableTestRepositoryFormat(repository.RepositoryFormat):
61
"""An identifable branch format (has a format string)"""
63
def get_format_string(self):
64
return "I have an identity"
67
class AnonymousTestWorkingTreeFormat(workingtree.WorkingTreeFormat):
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 IdentifiableTestWorkingTreeFormat(workingtree.WorkingTreeFormat):
75
"""An identifable branch format (has a format string)"""
77
def get_format_string(self):
78
return "I have an identity"
37
81
class TestBzrDir(TestCaseWithBzrDir):
39
83
# Many of these tests test for disk equality rather than checking