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