~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_version_info.py

  • Committer: Ian Clatworthy
  • Date: 2008-03-27 07:51:10 UTC
  • mto: (3311.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3312.
  • Revision ID: ian.clatworthy@canonical.com-20080327075110-afgd7x03ybju06ez
Reduce evangelism in the User Guide

Show diffs side-by-side

added added

removed removed

Lines of Context:
296
296
                         registry.get_help('testbuilder'))
297
297
        registry.remove('testbuilder')
298
298
        self.assertRaises(KeyError, registry.get, 'testbuilder')
 
299
 
 
300
    def test_old_functions(self):
 
301
        self.applyDeprecated(symbol_versioning.one_zero,
 
302
            version_info_formats.register_builder,
 
303
            'test-builder', __name__, 'TestBuilder')
 
304
        formats = self.applyDeprecated(symbol_versioning.one_zero,
 
305
            version_info_formats.get_builder_formats)
 
306
        self.failUnless('test-builder' in formats)
 
307
        self.assertIs(TestBuilder,
 
308
            self.applyDeprecated(symbol_versioning.one_zero,
 
309
                version_info_formats.get_builder, 'test-builder'))
 
310
        version_info_formats.format_registry.remove('test-builder')