/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: Zearin
  • Date: 2010-11-12 14:28:36 UTC
  • mto: This revision was merged to the branch mainline in revision 5539.
  • Revision ID: zearin@users.sourceforge.net-20101112142836-gk9dk10q6oxdcz37
Fixed “its” vs “it's”.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006, 2008, 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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()