144
144
bzrdir.BzrDirFormat.register_format(format)
145
145
# which bzrdir.Open will refuse (not supported)
146
146
self.assertRaises(UnsupportedFormatError, bzrdir.BzrDir.open, url)
147
149
# but open_downlevel will work
149
151
self.assertEqual(format.open(t), bzrdir.BzrDir.open_unsupported(url))