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