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

  • Committer: Martin Pool
  • Date: 2007-08-20 05:48:40 UTC
  • mfrom: (2727 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2737.
  • Revision ID: mbp@sourcefrog.net-20070820054840-x2ugmd9dc4yodw9o
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1004
1004
        Note that this only captures warnings raised by symbol_versioning.warn,
1005
1005
        not other callers that go direct to the warning module.
1006
1006
 
 
1007
        To test that a deprecated method raises an error, do something like
 
1008
        this::
 
1009
 
 
1010
        self.assertRaises(errors.ReservedId,
 
1011
            self.applyDeprecated, zero_ninetyone,
 
1012
                br.append_revision, 'current:')
 
1013
 
1007
1014
        :param deprecation_format: The deprecation format that the callable
1008
1015
            should have been deprecated with. This is the same type as the
1009
1016
            parameter to deprecated_method/deprecated_function. If the