/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_registry.py

  • Committer: Vincent Ladeuil
  • Date: 2010-10-15 12:35:00 UTC
  • mto: This revision was merged to the branch mainline in revision 5502.
  • Revision ID: v.ladeuil+lp@free.fr-20101015123500-iyqj7e0r62ie6qfy
Unbreak pqm by commenting out the bogus use of doctest +SKIP not supported by python2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import sys
21
21
 
22
22
from bzrlib import (
 
23
    branch,
23
24
    errors,
24
25
    osutils,
25
26
    registry,
286
287
            '\n\n'
287
288
        )
288
289
 
 
290
    def test_lazy_import_registry_foo(self):
 
291
        a_registry = registry.Registry()
 
292
        a_registry.register_lazy('foo', 'bzrlib.branch', 'Branch')
 
293
        a_registry.register_lazy('bar', 'bzrlib.branch', 'Branch.hooks')
 
294
        self.assertEqual(branch.Branch, a_registry.get('foo'))
 
295
        self.assertEqual(branch.Branch.hooks, a_registry.get('bar'))
 
296
 
289
297
    def test_lazy_import_registry(self):
290
298
        plugin_name = self.create_simple_plugin()
291
299
        a_registry = registry.Registry()