82
80
def test_get_set_default_format_by_key(self):
83
81
old_format = workingtree.format_registry.get_default()
85
83
format = SampleTreeFormat()
86
84
workingtree.format_registry.register(format)
87
85
self.addCleanup(workingtree.format_registry.remove, format)
89
87
workingtree.format_registry.set_default_key(format.get_format_string())
91
89
# the default branch format is used by the meta dir format