/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_foreign.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-11 15:36:12 UTC
  • mfrom: (5712.4.8 bzrdir-weave)
  • mto: This revision was merged to the branch mainline in revision 5718.
  • Revision ID: jelmer@samba.org-20110311153612-7xniucwst6rrjshk
merge bzrdir-weave.

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
 
263
263
 
264
264
def register_dummy_foreign_for_test(testcase):
265
 
    controldir.ControlDirFormat.register_format(DummyForeignVcsDirFormat)
266
 
    testcase.addCleanup(controldir.ControlDirFormat.unregister_format,
267
 
                        DummyForeignVcsDirFormat)
268
265
    controldir.ControlDirFormat.register_prober(DummyForeignProber)
269
266
    testcase.addCleanup(controldir.ControlDirFormat.unregister_prober,
270
267
        DummyForeignProber)
284
281
            raise errors.NotBranchError(path=transport.base)
285
282
        return DummyForeignVcsDirFormat()
286
283
 
 
284
    @classmethod
 
285
    def known_formats(cls):
 
286
        return set([DummyForeignVcsDirFormat()])
 
287
 
287
288
 
288
289
class ForeignVcsRegistryTests(tests.TestCase):
289
290
    """Tests for the ForeignVcsRegistry class."""