186
166
# register a format for it.
187
167
workingtree.WorkingTreeFormat.register_format(format)
189
168
# which branch.Open will refuse (not supported)
190
169
self.assertRaises(errors.UnsupportedFormatError, workingtree.WorkingTree.open, '.')
191
170
# but open_downlevel will work
192
171
self.assertEqual(format.open(dir), workingtree.WorkingTree.open_downlevel('.'))
194
173
workingtree.WorkingTreeFormat.unregister_format(format)
205
176
class TestWorkingTreeFormat3(TestCaseWithTransport):