~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

Fix BzrDir.open_containing of unsupported branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
        # which bzrdir.open_containing will refuse (not supported)
 
148
        self.assertRaises(UnsupportedFormatError, bzrdir.BzrDir.open_containing, url)
147
149
        # but open_downlevel will work
148
150
        t = get_transport(url)
149
151
        self.assertEqual(format.open(t), bzrdir.BzrDir.open_unsupported(url))